Commit 0b31cf48 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for iWave G35M

parent c3cf3383
......@@ -22,6 +22,7 @@ boot-orange-pi-pc-plus: boot-armv7
boot-odroid-hc2: boot-armv7
boot-orange-pi-3-lts: boot-armv8
boot-terasic-de10-standard: boot-armv7
boot-iwave-g35m: boot-armv8
boot-raspberry-pi-3-b: boot-armv8
boot-raspberry-pi-4-b: boot-armv8
boot-amlogic-s905x: boot-armv8
......@@ -284,6 +285,57 @@ terasicde10standard:
rm -rf /kernelconfig
rm -rf linux-5.12.10
iwaveg35m-clfs:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-xilinx.patch
patch -Np1 -d linux-5.12.10 < linux-5.12.10-iwaveg35m.patch
$(MAKE) -C linux-5.12.10 zynqmp_iwg35m_defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/iwave-g35m` ; for config in $$files ; do cat /kernelconfig/iwave-g35m/$$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/xilinx/iwaveg35m.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.12.10
swapoff swap
rm -rf swap
iwaveg35m:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-xilinx.patch
patch -Np1 -d linux-5.12.10 < linux-5.12.10-iwaveg35m.patch
cp -v /boot/config-5.12.10 linux-5.12.10/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/iwave-g35m` ; for config in $$files ; do cat /kernelconfig/iwave-g35m/$$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 -rf /boot/dtbs
rm -f /boot/config*
rm -f /boot/vmlinux*
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/xilinx/iwaveg35m.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.12.10
swapoff swap
rm -rf swap
rpi3b-clfs:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
......
......@@ -122,6 +122,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<delete dir="${makedir}"/>
</target>
<target name="boot-linux-iwave-g35m">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
<target name="boot-linux-raspberry-pi-3-b">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
......
This diff is collapsed.
This diff is collapsed.
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