Commit fc56a5c8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for Odroid HC2

parent b1c4c406
......@@ -18,6 +18,7 @@ clean:
boot-orange-pi-plus-2e: boot-armv7
boot-orange-pi-pc-plus: boot-armv7
boot-odroid-hc2: boot-armv7
boot-terasic-de10-standard: boot-armv7
boot-raspberry-pi-3-b: boot-armv8
boot-raspberry-pi-4-b: boot-armv8
......@@ -167,6 +168,43 @@ opipcplus:
rm -rf /kernelconfig
rm -rf linux-5.4.51
odroidhc2-clfs:
tar xf linux-5.4.51.tar.xz
patch -Np1 -d linux-5.4.51 < linux-5.4.51-xu4.patch
$(MAKE) -C linux-5.4.51 odroidxu4_defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/odroid-hc2` ; for config in $$files ; do cat /kernelconfig/odroid-hc2/$$config >> linux-5.4.51/.config ; done'
$(MAKE) -C linux-5.4.51 oldconfig
$(MAKE) -C linux-5.4.51
$(MAKE) -C linux-5.4.51 zinstall modules_install dtbs_install
cp -v linux-5.4.51/.config /boot/config-5.4.51
ln -svf vmlinuz-5.4.51 /boot/zImage
ln -svf dtbs/5.4.51/exynos5422-odroidhc1.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.4.51
odroidhc2:
tar xf linux-5.4.51.tar.xz
patch -Np1 -d linux-5.4.51 < linux-5.4.51-xu4.patch
cp -v /boot/config-5.4.51 linux-5.4.51/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/odroid-hc2` ; for config in $$files ; do cat /kernelconfig/odroid-hc2/$$config >> linux-5.4.51/.config ; done'
$(MAKE) -C linux-5.4.51 oldconfig
$(MAKE) -C linux-5.4.51
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.4.51 zinstall modules_install dtbs_install
cp -v linux-5.4.51/.config /boot/config-5.4.51
ln -svf vmlinuz-5.4.51 /boot/zImage
ln -svf dtbs/5.4.51/exynos5422-odroidhc1.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.4.51
terasicde10standard-clfs:
tar xf linux-5.4.51.tar.xz
$(MAKE) -C linux-5.4.51 socfpga_defconfig
......
......@@ -25,6 +25,10 @@
<ant antfile="packages/linux/build.xml" target="boot-linux-armv7"/>
</target>
<target name="boot-linux-odroid-hc2">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv7"/>
</target>
<target name="boot-linux-terasic-de10-standard">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv7"/>
</target>
......
This diff is collapsed.
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