ronnie
2022-10-23 1972b0e7ed50e5b37c5633d662ea03d23b15499c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Description:
# Allwinner compile tools usage
# We follow below step:
#
# To sun8i & linux-3.x developer:
#------------------------------------------------------------------------------------------------
# Using origin buildroot compile once, then not compile with reusable.
#    Arch            Kernel                Out Dir
#    sun8i            Linux-3.x            out/${chip}
#------------------------------------------------------------------------------------------------
#
# To mostly developer(sun50i|linux-4.x): using tools/build/mkcommon.sh
#------------------------------------------------------------------------------------------------
#    Kernel            Linux-3.x            Linux-4.x
#    Toolchain        origin                linaro-5.3
#    Toolchain Dir        external-toolchain        gcc-linaro-5.3.1-2016.05
#    Def Rootfs        target_${ARCH}.tar.xz        target-${ARCH}-linaro-5.3.tar.xz
#    Out Dir            out/${chip}            out/${chip}-linaro-5.3
#
# To self design rootfs developer: using ${buildroot}/build/mkcommon.sh
#------------------------------------------------------------------------------------------------
#    Kernel            Linux-3.x            Linux-4.x
#    buildroot        origin                buildroot-201611
#    Out Dir            out/${chip}            out/${chip}-linaro-5.3
#
# As self design rootfs developer, if not manager buildroot, please reference to buildroot manual
#
 
if [ "x$@" = "xconfig" ]; then
   tools/build/mkcommon.sh $@
else
   if [ -n "`cat .buildconfig | grep "sun50i"`"    \
       -o -n "`cat .buildconfig | grep "linux-4"`" ]; then
       tools/build/mkcommon.sh $@
   else
       # only sun8i & linux-3.x config default using this
       buildroot/scripts/mkcommon.sh $@
   fi
fi