mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
MAKEALL: adjust for Kconfig
- Use "make <board>_defconfig" instead of "make <board>_config". - Invoke tools/genboardscfg.py to generate boards.cfg when it is missing. - Show "Building ${BOARD_NAME} board..." message. (Prior to Kconfig, instead, mkconfig script displayed "Configuring for ${BOARD_NAME} board..." but it was removed.) Without this message, we cannot know which board is currently being built. - Do not show "# configuration written to .config". This message is useless and just annoying for MAKEALL. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a2580ebb72
commit
bb6da87d7e
1 changed files with 13 additions and 3 deletions
16
MAKEALL
16
MAKEALL
|
@ -171,6 +171,14 @@ GNU_MAKE=$(scripts/show-gnu-make) || {
|
||||||
# echo "Remaining arguments:"
|
# echo "Remaining arguments:"
|
||||||
# for arg do echo '--> '"\`$arg'" ; done
|
# for arg do echo '--> '"\`$arg'" ; done
|
||||||
|
|
||||||
|
if [ ! -r boards.cfg ]; then
|
||||||
|
echo "Could not find boards.cfg"
|
||||||
|
tools/genboardscfg.py || {
|
||||||
|
echo "Failed to generate boards.cfg" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
FILTER="\$1 !~ /^#/"
|
FILTER="\$1 !~ /^#/"
|
||||||
[ "$opt_a" ] && FILTER="${FILTER} && $opt_a"
|
[ "$opt_a" ] && FILTER="${FILTER} && $opt_a"
|
||||||
[ "$opt_c" ] && FILTER="${FILTER} && $opt_c"
|
[ "$opt_c" ] && FILTER="${FILTER} && $opt_c"
|
||||||
|
@ -512,9 +520,9 @@ get_target_location() {
|
||||||
|
|
||||||
set ${line}
|
set ${line}
|
||||||
|
|
||||||
CONFIG_NAME="${7%_config}"
|
CONFIG_NAME="${7%_defconfig}"
|
||||||
|
|
||||||
[ "${BOARD_NAME}" ] || BOARD_NAME="${7%_config}"
|
[ "${BOARD_NAME}" ] || BOARD_NAME="${7%_defconfig}"
|
||||||
|
|
||||||
if [ $# -gt 5 ]; then
|
if [ $# -gt 5 ]; then
|
||||||
if [ "$6" = "-" ] ; then
|
if [ "$6" = "-" ] ; then
|
||||||
|
@ -651,7 +659,9 @@ build_target() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${MAKE} distclean >/dev/null
|
${MAKE} distclean >/dev/null
|
||||||
${MAKE} -s ${target}_config
|
|
||||||
|
echo "Building ${target} board..."
|
||||||
|
${MAKE} -s ${target}_defconfig >/dev/null
|
||||||
|
|
||||||
${MAKE} ${JOBS} ${CHECK} all \
|
${MAKE} ${JOBS} ${CHECK} all \
|
||||||
>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
|
>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
|
||||||
|
|
Loading…
Add table
Reference in a new issue