Commit aeace909 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for AmLogic Meson GXL S905X

parent 95cb0631
...@@ -19,6 +19,7 @@ boot-orange-pi-plus-2e: boot-armv7 ...@@ -19,6 +19,7 @@ boot-orange-pi-plus-2e: boot-armv7
boot-orange-pi-pc-plus: boot-armv7 boot-orange-pi-pc-plus: boot-armv7
boot-terasic-de10-standard: boot-armv7 boot-terasic-de10-standard: boot-armv7
boot-raspberry-pi-3-b: boot-armv8 boot-raspberry-pi-3-b: boot-armv8
boot-amlogic-s905x: boot-armv8
boot-qemu-kvm64: boot-x86_64 boot-qemu-kvm64: boot-x86_64
boot-qemu-phenom: boot-x86_64 boot-qemu-phenom: boot-x86_64
boot-qemu-core2duo: boot-x86_64 boot-qemu-core2duo: boot-x86_64
...@@ -238,6 +239,53 @@ rpi3b: ...@@ -238,6 +239,53 @@ rpi3b:
swapoff swap swapoff swap
rm -rf swap rm -rf swap
amlogics905x-clfs:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf linux-5.2.8.tar.xz
$(MAKE) -C linux-5.2.8 defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/amlogic-s905x` ; for config in $$files ; do cat /kernelconfig/amlogic-s905x/$$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 install modules_install dtbs_install
cp -v linux-5.2.8/.config /boot/config-5.2.8
ln -svf vmlinux-5.2.8 /boot/Image
ln -svf dtbs/5.2.8/amlogic/meson-gxl-s905x-p212.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.2.8
swapoff swap
rm -rf swap
amlogics905x:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
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/amlogic-s905x` ; for config in $$files ; do cat /kernelconfig/amlogic-s905x/$$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 -rf /boot/dtbs
rm -f /boot/config*
rm -f /boot/vmlinux*
rm -f /boot/System.map*
$(MAKE) -C linux-5.2.8 install modules_install dtbs_install
cp -v linux-5.2.8/.config /boot/config-5.2.8
ln -svf vmlinux-5.2.8 /boot/Image
ln -svf dtbs/5.2.8/amlogic/meson-gxl-s905x-p212.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.2.8
swapoff swap
rm -rf swap
kvm64-clfs: kvm64-clfs:
tar xf linux-5.2.8.tar.xz tar xf linux-5.2.8.tar.xz
$(MAKE) -C linux-5.2.8 defconfig $(MAKE) -C linux-5.2.8 defconfig
......
...@@ -122,6 +122,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}" ...@@ -122,6 +122,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-amlogic-s905x">
<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.2.8"/> <property name="makedir" value="${builddir}/linux-5.2.8"/>
<mkdir dir="${makedir}"/> <mkdir dir="${makedir}"/>
......
kernel
/boot/(System\.map|config|vmlinux).*
dtb
/boot/dtbs/.*
etc
/etc/.*
modules
/lib/modules/.*
firmware
/lib/firmware/.*
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