Skip to content

Commit

Permalink
linux: set DTC_FLAGS as environment variable instead of make argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
HiassofT committed Feb 12, 2021
1 parent bb390f9 commit 8be2648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/linux/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ make_target() {
KERNEL_TARGET="${KERNEL_TARGET/uImage/Image}"
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
( cd tools/perf
Expand Down

0 comments on commit 8be2648

Please sign in to comment.