linux: set DTC_FLAGS as environment variable instead of make argument

Setting DTC_FLAGS as a make argument overrides the additional dtc flags
which are added in kernel's scripts/Makefile.lib.

This results in lots of noisy warnings when building RPi DT and overlays
and could be potentially problematic if kbuild adds important dtc flags.

Pass in DTC_FLAGS as an environment variable so that kbuild can
adjust DTC_FLAGS as needed.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-02-12 11:37:38 +01:00
parent bb390f98b9
commit 8be2648cd7

View File

@ -190,7 +190,7 @@ make_target() {
KERNEL_TARGET="${KERNEL_TARGET/uImage/Image}" KERNEL_TARGET="${KERNEL_TARGET/uImage/Image}"
fi fi
kernel_make DTC_FLAGS=-@ ${KERNEL_TARGET} ${KERNEL_MAKE_EXTRACMD} modules DTC_FLAGS=-@ kernel_make ${KERNEL_TARGET} ${KERNEL_MAKE_EXTRACMD} modules
if [ "${PKG_BUILD_PERF}" = "yes" ]; then if [ "${PKG_BUILD_PERF}" = "yes" ]; then
( cd tools/perf ( cd tools/perf