diff mbox series

[1/1] Revert "linux: install dtc (device tree compiler) as host tool if selected"

Message ID 20240816141255.4630-1-tianyuanhao3@163.com
State New
Headers show
Series [1/1] Revert "linux: install dtc (device tree compiler) as host tool if selected" | expand

Commit Message

TIAN Yuanhao Aug. 16, 2024, 2:12 p.m. UTC
This reverts commit 707d44d0a28906ebda49584dd5f55985406f0bde.

Now that we have a proper host-dtc package, it is no longer needed for
the linux package to install the host dtc compiler.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Cc: Peter Seiderer <ps.report@gmx.net>

---

I tried to make the upstream Linux use the host dtc, but failed. [1]

[1]: https://patchwork.kernel.org/comment/25979556/
---
 linux/linux.mk | 9 ---------
 1 file changed, 9 deletions(-)


base-commit: 2a8c58b5849ed2c9908cf08b596f370454c251b6
diff mbox series

Patch

diff --git a/linux/linux.mk b/linux/linux.mk
index 16d9f19470..165751577a 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -536,14 +536,6 @@  define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET
 endef
 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)/bin/linux-dtc ; \
-		$(if $(BR2_PACKAGE_HOST_DTC),,ln -sf linux-dtc $(HOST_DIR)/bin/dtc;) \
-	fi
-endef
-
 define LINUX_INSTALL_IMAGES_CMDS
 	$(call LINUX_INSTALL_IMAGE,$(BINARIES_DIR))
 	$(call LINUX_INSTALL_DTB,$(BINARIES_DIR))
@@ -562,7 +554,6 @@  define LINUX_INSTALL_TARGET_CMDS
 		rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
 		rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
 	fi
-	$(LINUX_INSTALL_HOST_TOOLS)
 endef
 
 # Run depmod in a target-finalize hook, to encompass modules installed by