Commit 9f6aa2bb authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for Lenovo T460s

parent bafde1c4
......@@ -955,3 +955,38 @@ xeon-e3-1271:
ln -svf vmlinuz-5.2.8 /boot/zImage
rm -rf /kernelconfig
rm -rf linux-5.2.8
lenovo-t460s-clfs:
tar xf linux-5.2.8.tar.xz
$(MAKE) -C linux-5.2.8 defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/lenovo-t460s` ; for config in $$files ; do cat /kernelconfig/lenovo-t460s/$$config >> linux-5.2.8/.config ; done'
$(MAKE) -C linux-5.2.8 oldconfig
$(MAKE) -C linux-5.2.8
$(MAKE) -C linux-5.2.8 modules_install
cp -v linux-5.2.8/arch/x86/boot/bzImage /boot/vmlinuz-5.2.8
cp -v linux-5.2.8/System.map /boot/System.map-5.2.8
cp -v linux-5.2.8/.config /boot/config-5.2.8
ln -svf vmlinuz-5.2.8 /boot/zImage
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.2.8
lenovo-t460s:
tar xf linux-5.2.8.tar.xz
cp -v /boot/config-5.2.8 linux-5.2.8/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/lenovo-t460s` ; for config in $$files ; do cat /kernelconfig/lenovo-t460s/$$config >> linux-5.2.8/.config ; done'
$(MAKE) -C linux-5.2.8 oldconfig
$(MAKE) -C linux-5.2.8
rm -rf /lib/modules
rm -f /boot/config*
rm -f /boot/vmlinuz*
rm -f /boot/System.map*
$(MAKE) -C linux-5.2.8 modules_install
cp -v linux-5.2.8/arch/x86/boot/bzImage /boot/vmlinuz-5.2.8
cp -v linux-5.2.8/System.map /boot/System.map-5.2.8
cp -v linux-5.2.8/.config /boot/config-5.2.8
ln -svf vmlinuz-5.2.8 /boot/zImage
rm -rf /kernelconfig
rm -rf linux-5.2.8
......@@ -291,6 +291,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/>
</target>
<target name="boot-linux-lenovo-t460s">
<ant antfile="packages/linux/build.xml" target="boot-linux-x86_64"/>
</target>
<target name="boot-linux-x86_64">
<property name="makedir" value="${builddir}/linux-5.2.8"/>
<mkdir dir="${makedir}"/>
......
kernel
/boot/.*
modules
/lib/modules/.*
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