Commit f4a129a8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for reComputer J4012

parent cba31a7a
...@@ -28,6 +28,7 @@ boot-raspberry-pi-3-b: boot-armv8 ...@@ -28,6 +28,7 @@ boot-raspberry-pi-3-b: boot-armv8
boot-raspberry-pi-4-b: boot-armv8 boot-raspberry-pi-4-b: boot-armv8
boot-amlogic-s905x: boot-armv8 boot-amlogic-s905x: boot-armv8
boot-recomputer-j2012: boot-armv8 boot-recomputer-j2012: boot-armv8
boot-recomputer-j4012: boot-armv8
boot-aws: boot-x86_64 boot-aws: boot-x86_64
boot-qemu-kvm64: boot-x86_64 boot-qemu-kvm64: boot-x86_64
boot-qemu-phenom: boot-x86_64 boot-qemu-phenom: boot-x86_64
...@@ -548,7 +549,7 @@ recomputer-j2012-clfs: ...@@ -548,7 +549,7 @@ recomputer-j2012-clfs:
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install $(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10 cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/nvidia/tegra194-p3509-0000+p3668-0001.dtb /boot/machine.dtb ln -svf dtbs/5.12.10/nvidia/recomputer-j2012.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests $(MAKE) -C ../kmod tests
rm -rf /kernelconfig rm -rf /kernelconfig
rm -rf linux-5.12.10 rm -rf linux-5.12.10
...@@ -568,7 +569,43 @@ recomputer-j2012: ...@@ -568,7 +569,43 @@ recomputer-j2012:
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install $(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10 cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/nvidia/tegra194-p3509-0000+p3668-0001.dtb /boot/machine.dtb ln -svf dtbs/5.12.10/nvidia/recomputer-j2012.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.12.10
recomputer-j4012-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-j4012` ; for config in $$files ; do cat /kernelconfig/recomputer-j4012/$$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/recomputer-j4012.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.12.10
recomputer-j4012:
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-j4012` ; for config in $$files ; do cat /kernelconfig/recomputer-j4012/$$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/recomputer-j4012.dtb /boot/machine.dtb
rm -f /boot/*.old rm -f /boot/*.old
rm -rf /kernelconfig rm -rf /kernelconfig
rm -rf linux-5.12.10 rm -rf linux-5.12.10
......
...@@ -150,6 +150,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}" ...@@ -150,6 +150,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/> <ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target> </target>
<target name="boot-linux-recomputer-j4012">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
<target name="boot-linux-armv8"> <target name="boot-linux-armv8">
<property name="makedir" value="${builddir}/linux-5.12.10"/> <property name="makedir" value="${builddir}/linux-5.12.10"/>
<mkdir dir="${makedir}"/> <mkdir dir="${makedir}"/>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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