Commit 99bfdd14 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for reComputer J2012

parent accb80e9
......@@ -27,6 +27,7 @@ boot-nile-orinoco-mini: boot-armv8
boot-raspberry-pi-3-b: boot-armv8
boot-raspberry-pi-4-b: boot-armv8
boot-amlogic-s905x: boot-armv8
boot-jetson-xavier-nx: boot-armv8
boot-aws: boot-x86_64
boot-qemu-kvm64: boot-x86_64
boot-qemu-phenom: boot-x86_64
......@@ -536,6 +537,42 @@ amlogics905x:
swapoff swap
rm -rf swap
recomputer-j2012-clfs:
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-nvidia.patch
$(MAKE) -C linux-5.12.10 defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/recomputer-j2012` ; for config in $$files ; do cat /kernelconfig/recomputer-j2012/$$config >> linux-5.12.10/.config ; done'
$(MAKE) -C linux-5.12.10 oldconfig
$(MAKE) -C linux-5.12.10
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/nvidia/tegra194-p3509-0000+p3668-0001.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.12.10
recomputer-j2012:
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-nvidia.patch
cp -v /boot/config-5.12.10 linux-5.12.10/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/recomputer-j2012` ; for config in $$files ; do cat /kernelconfig/recomputer-j2012/$$config >> linux-5.12.10/.config ; done'
$(MAKE) -C linux-5.12.10 oldconfig
$(MAKE) -C linux-5.12.10
rm -rf /lib/modules
rm -f /boot/config*
rm -f /boot/vmlinuz*
rm -f /boot/System.map*
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/nvidia/tegra194-p3509-0000+p3668-0001.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.12.10
aws-clfs:
tar xf linux-5.12.10.tar.xz
$(MAKE) -C linux-5.12.10 defconfig
......
......@@ -146,6 +146,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
<target name="boot-linux-recomputer-j2012">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
<target name="boot-linux-armv8">
<property name="makedir" value="${builddir}/linux-5.12.10"/>
<mkdir dir="${makedir}"/>
......
kernel
/boot/.*
modules
/lib/modules/.*
etc
/etc/.*
kernel
/boot/(System\.map|config|vmlinux).*
dtb
/boot/dtbs/.*
etc
/etc/.*
modules
/lib/modules/.*
firmware
/lib/firmware/.*
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