]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/blob - meta/recipes-bsp/u-boot/u-boot-configure.inc
235623d25a7e155e0301b8baebe4c4eff3df6837
[thirdparty/openembedded/openembedded-core.git] / meta / recipes-bsp / u-boot / u-boot-configure.inc
1 # This provides the logic for creating the desired u-boot config,
2 # accounting for any *.cfg files added to SRC_URI. It's separated
3 # from u-boot.inc for use by recipes that need u-boot properly
4 # configured but aren't doing a full build of u-boot itself (such as
5 # its companion tools).
6
7 inherit uboot-config cml1
8
9 DEPENDS += "kern-tools-native"
10
11 do_configure () {
12 if [ -n "${UBOOT_CONFIG}" ]; then
13 unset i j
14 for config in ${UBOOT_MACHINE}; do
15 i=$(expr $i + 1);
16 for type in ${UBOOT_CONFIG}; do
17 j=$(expr $j + 1);
18 if [ $j -eq $i ]; then
19 oe_runmake -C ${S} O=${B}/${config} ${config}
20 if [ -n "${@' '.join(find_cfgs(d))}" ]; then
21 merge_config.sh -m -O ${B}/${config} ${B}/${config}/.config ${@" ".join(find_cfgs(d))}
22 oe_runmake -C ${S} O=${B}/${config} oldconfig
23 fi
24 fi
25 done
26 unset j
27 done
28 unset i
29 else
30 if [ -n "${UBOOT_MACHINE}" ]; then
31 oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
32 else
33 oe_runmake -C ${S} O=${B} oldconfig
34 fi
35 merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
36 cml1_do_configure
37 fi
38 }