[openwrt/openwrt] qca-nss-dp: cp instead of symlink for `nss_dp_arch.h`

LEDE Commits lede-commits at lists.infradead.org
Mon Apr 1 10:44:49 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a0962e8c0435c5511059206c40dbab9dc522767c

commit a0962e8c0435c5511059206c40dbab9dc522767c
Author: Sean Khan <datapronix at protonmail.com>
AuthorDate: Sun Mar 31 22:03:22 2024 -0400

    qca-nss-dp: cp instead of symlink for `nss_dp_arch.h`
    
    Build files shouldn't be symlinked into the staging directory, as doing so
    would create a race condition if the build folder for 'qca-nss-dp' gets
    deleted for any reason.
    
    We should instead just copy over the required platform file to avoid
    breaking compilation for any dependent packages.
    
    Signed-off-by: Sean Khan <datapronix at protonmail.com>
---
 package/kernel/qca-nss-dp/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/qca-nss-dp/Makefile b/package/kernel/qca-nss-dp/Makefile
index e17446d236..167a9af4e4 100644
--- a/package/kernel/qca-nss-dp/Makefile
+++ b/package/kernel/qca-nss-dp/Makefile
@@ -39,7 +39,7 @@ EXTRA_CFLAGS+= \
 
 NSS_DP_HAL_DIR:=$(PKG_BUILD_DIR)/hal
 define Build/Configure
-	$(LN) $(NSS_DP_HAL_DIR)/soc_ops/$(CONFIG_TARGET_SUBTARGET)/nss_$(CONFIG_TARGET_SUBTARGET).h \
+	$(CP) $(NSS_DP_HAL_DIR)/soc_ops/$(CONFIG_TARGET_SUBTARGET)/nss_$(CONFIG_TARGET_SUBTARGET).h \
 		$(PKG_BUILD_DIR)/exports/nss_dp_arch.h
 endef
 




More information about the lede-commits mailing list