Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

at91bootstrap: add support of *.cfg files #270

Open
wants to merge 1 commit into
base: kirkstone
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -94,6 +94,13 @@ do_configure() {
bbfatal "No config files found"
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

cml1_do_configure
}

Expand Down