-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 image, but it is not done. Signed-off-by: BELOUARGA Mohamed <[email protected]>
- Loading branch information
BELOUARGA Mohamed
committed
Jan 18, 2024
1 parent
128bf04
commit 5a760fc
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This provides the logic for creating the desired u-boot config, | ||
# accounting for any *.cfg files added to SRC_URI. It's separated | ||
# from u-boot-atmel.inc for use by recipes that need u-boot properly | ||
# configured but aren't doing a full build of u-boot itself (such as | ||
# its companion tools). | ||
|
||
inherit uboot-config cml1 | ||
|
||
DEPENDS += "kern-tools-native" | ||
|
||
do_configure () { | ||
if [ -n "${UBOOT_CONFIG}" ]; then | ||
unset i j | ||
for config in ${UBOOT_MACHINE}; do | ||
i=$(expr $i + 1); | ||
for type in ${UBOOT_CONFIG}; do | ||
j=$(expr $j + 1); | ||
if [ $j -eq $i ]; then | ||
oe_runmake -C ${S} O=${B}/${config} ${config} | ||
if [ -n "${@' '.join(find_cfgs(d))}" ]; then | ||
merge_config.sh -m -O ${B}/${config} ${B}/${config}/.config ${@" ".join(find_cfgs(d))} | ||
oe_runmake -C ${S} O=${B}/${config} oldconfig | ||
fi | ||
fi | ||
done | ||
unset j | ||
done | ||
unset i | ||
DEVTOOL_DISABLE_MENUCONFIG=true | ||
else | ||
if [ -n "${UBOOT_MACHINE}" ]; then | ||
oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE} | ||
else | ||
oe_runmake -C ${S} O=${B} oldconfig | ||
fi | ||
merge_config.sh -m .config ${@" ".join(find_cfgs(d))} | ||
cml1_do_configure | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters