Commit 2308ccb8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for QEMU Nehalem

parent a7e18a78
...@@ -12,6 +12,7 @@ boot-raspberry-pi-3-b: boot-armv8 ...@@ -12,6 +12,7 @@ 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-qemu-sandybridge: boot-x86_64
boot-qemu-nehalem: 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
...@@ -297,6 +298,43 @@ sandybridge: ...@@ -297,6 +298,43 @@ sandybridge:
rm -rf /kernelconfig rm -rf /kernelconfig
rm -rf linux-4.14.36 rm -rf linux-4.14.36
nehalem-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-nehalem` ; for config in $$files ; do cat /kernelconfig/qemu-nehalem/$$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
nehalem:
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-nehalem` ; for config in $$files ; do cat /kernelconfig/qemu-nehalem/$$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
......
...@@ -225,6 +225,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}" ...@@ -225,6 +225,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-nehalem">
<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