Commit a7e18a78 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for QEMU SandyBridge

parent aa3af3c1
...@@ -11,6 +11,7 @@ boot-orange-pi-pc-plus: boot-armv7 ...@@ -11,6 +11,7 @@ boot-orange-pi-pc-plus: boot-armv7
boot-raspberry-pi-3-b: boot-armv8 boot-raspberry-pi-3-b: boot-armv8
boot-qemu-kvm64: boot-x86_64 boot-qemu-kvm64: boot-x86_64
boot-qemu-core2duo: boot-x86_64 boot-qemu-core2duo: boot-x86_64
boot-qemu-sandybridge: boot-x86_64
boot-x4-945: boot-x86_64 boot-x4-945: boot-x86_64
boot-e2-6110: boot-x86_64 boot-e2-6110: boot-x86_64
boot-p4-630: boot-x86_64 boot-p4-630: boot-x86_64
...@@ -259,6 +260,43 @@ core2duo: ...@@ -259,6 +260,43 @@ core2duo:
rm -rf /kernelconfig rm -rf /kernelconfig
rm -rf linux-4.14.36 rm -rf linux-4.14.36
sandybridge-clfs:
tar xf linux-4.14.36.tar.xz
patch -Np1 -d linux-4.14.36 < linux-4.14.36-gcc8.patch
$(MAKE) -C linux-4.14.36 defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/qemu-sandybridge` ; for config in $$files ; do cat /kernelconfig/qemu-sandybridge/$$config >> linux-4.14.36/.config ; done'
$(MAKE) -C linux-4.14.36 oldconfig
$(MAKE) -C linux-4.14.36
$(MAKE) -C linux-4.14.36 modules_install
cp -v linux-4.14.36/arch/x86/boot/bzImage /boot/vmlinuz-4.14.36
cp -v linux-4.14.36/System.map /boot/System.map-4.14.36
cp -v linux-4.14.36/.config /boot/config-4.14.36
ln -svf vmlinuz-4.14.36 /boot/zImage
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-4.14.36
sandybridge:
tar xf linux-4.14.36.tar.xz
patch -Np1 -d linux-4.14.36 < linux-4.14.36-gcc8.patch
cp -v /boot/config-4.14.36 linux-4.14.36/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/qemu-sandybridge` ; for config in $$files ; do cat /kernelconfig/qemu-sandybridge/$$config >> linux-4.14.36/.config ; done'
$(MAKE) -C linux-4.14.36 oldconfig
$(MAKE) -C linux-4.14.36
rm -rf /lib/modules
rm -f /boot/config*
rm -f /boot/vmlinuz*
rm -f /boot/System.map*
$(MAKE) -C linux-4.14.36 modules_install
cp -v linux-4.14.36/arch/x86/boot/bzImage /boot/vmlinuz-4.14.36
cp -v linux-4.14.36/System.map /boot/System.map-4.14.36
cp -v linux-4.14.36/.config /boot/config-4.14.36
ln -svf vmlinuz-4.14.36 /boot/zImage
rm -rf /kernelconfig
rm -rf linux-4.14.36
x4-945-clfs: x4-945-clfs:
tar xf linux-4.14.36.tar.xz tar xf linux-4.14.36.tar.xz
patch -Np1 -d linux-4.14.36 < linux-4.14.36-gcc8.patch patch -Np1 -d linux-4.14.36 < linux-4.14.36-gcc8.patch
......
...@@ -221,6 +221,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}" ...@@ -221,6 +221,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/> <ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/>
</target> </target>
<target name="boot-linux-qemu-sandybridge">
<ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/>
</target>
<target name="boot-linux-x4-945"> <target name="boot-linux-x4-945">
<ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/> <ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/>
</target> </target>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment