Skip to content

Commit

Permalink
at91bootstrap: add support of *.cfg files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MBELOUARGA committed Mar 12, 2024
1 parent dfb4083 commit ec89a5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion recipes-bsp/at91bootstrap/at91bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "file://main.c;endline=27;md5=42f86d2f6fd17d1221c5c651b487a07

inherit cml1 deploy

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

AT91BOOTSTRAP_MACHINE ??= "${MACHINE}"

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

# If .cfg files exist, merge them to .config file
# This allows recipes to add .cfg files to change or to add features
if [ -n "${@' '.join(find_cfgs(d))}" ]; then
oe_runmake -C ${S} O=${B} oldconfig
merge_config.sh -m "${B}/.config" ${@" ".join(find_cfgs(d))}
fi

unset CFLAGS CPPFLAGS LDFLAGS
oe_runmake
}
Expand Down

0 comments on commit ec89a5c

Please sign in to comment.