Skip to content

Commit ec89a5c

Browse files
authored
at91bootstrap: add support of *.cfg files
Resolve the problem of support of .cfg configuration fragments. When a user adds a fragment.cfg to SRC_URI, it is expecetd that configuration is added to the final at91bootstrap, but it is not done.
1 parent dfb4083 commit ec89a5c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

recipes-bsp/at91bootstrap/at91bootstrap.inc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "file://main.c;endline=27;md5=42f86d2f6fd17d1221c5c651b487a07
1515

1616
inherit cml1 deploy
1717

18-
DEPENDS += "bc-native python3-native"
18+
DEPENDS += "bc-native python3-native kern-tools-native"
1919

2020
AT91BOOTSTRAP_MACHINE ??= "${MACHINE}"
2121

@@ -102,6 +102,13 @@ do_compile() {
102102
sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/Makefile
103103
fi
104104

105+
# If .cfg files exist, merge them to .config file
106+
# This allows recipes to add .cfg files to change or to add features
107+
if [ -n "${@' '.join(find_cfgs(d))}" ]; then
108+
oe_runmake -C ${S} O=${B} oldconfig
109+
merge_config.sh -m "${B}/.config" ${@" ".join(find_cfgs(d))}
110+
fi
111+
105112
unset CFLAGS CPPFLAGS LDFLAGS
106113
oe_runmake
107114
}

0 commit comments

Comments
 (0)