mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
linux: install dtc (device tree compiler) as host tool if selected
Having dtc as a host tool can be useful for users that have a custom boot scenario where the device tree is not embedded in the kernel. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
54366d812d
commit
707d44d0a2
@ -183,6 +183,15 @@ define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
define LINUX_INSTALL_HOST_TOOLS
|
||||||
|
# Installing dtc (device tree compiler) as host tool, if selected
|
||||||
|
if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
|
||||||
|
$(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/usr/bin/dtc ; \
|
||||||
|
fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
define LINUX_INSTALL_IMAGES_CMDS
|
define LINUX_INSTALL_IMAGES_CMDS
|
||||||
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
|
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
|
||||||
endef
|
endef
|
||||||
@ -197,6 +206,7 @@ define LINUX_INSTALL_TARGET_CMDS
|
|||||||
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
|
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
|
||||||
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
|
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
|
||||||
fi
|
fi
|
||||||
|
$(LINUX_INSTALL_HOST_TOOLS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
include linux/linux-ext-*.mk
|
include linux/linux-ext-*.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user