mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
linux: replace shell for loop with make foreach loop
This commit replaces the loop copying out-of-tree DTS into the kernel tree by a make foreach loop instead of a shell for loop. This allows to error out if one of the DTS file cannot be copied (for example if it doesn't exist). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
1ee626aab9
commit
1b53b177a6
@ -389,9 +389,9 @@ endif
|
|||||||
# Compilation. We make sure the kernel gets rebuilt when the
|
# Compilation. We make sure the kernel gets rebuilt when the
|
||||||
# configuration has changed.
|
# configuration has changed.
|
||||||
define LINUX_BUILD_CMDS
|
define LINUX_BUILD_CMDS
|
||||||
@for dts in $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)); do \
|
$(foreach dts,$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)), \
|
||||||
cp -f $${dts} $(LINUX_ARCH_PATH)/boot/dts/ ; \
|
cp -f $(dts) $(LINUX_ARCH_PATH)/boot/dts/
|
||||||
done
|
)
|
||||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
|
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
|
||||||
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
||||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
|
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user