diff options
| author | Michael Pratt | 2024-10-03 04:49:10 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-07-26 12:38:08 +0000 |
| commit | 660e398f92472fd31dc6947f669268301c96b547 (patch) | |
| tree | de56ebeb490bb42a023d2986a2f4b8441e77c38d | |
| parent | 90262c6f6e111d6efff134d74d180114af2d5655 (diff) | |
| download | openwrt-660e398f92472fd31dc6947f669268301c96b547.tar.gz | |
prereq: add support for creating relative symlinks
For targets that install symlinks, like coreutils,
if the links happen to be deleted, let prereq stage
be capable of creating them again with a relative path.
Tested-by: Georgi Valkov <gvalkov@gmail.com> # macOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | include/prereq.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/prereq.mk b/include/prereq.mk index 1039c5540c..23287eade4 100644 --- a/include/prereq.mk +++ b/include/prereq.mk @@ -113,7 +113,7 @@ define SetupHostCommand [ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \ ;; \ esac; \ - ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \ + ln -sf "$$$$$$$${bin#$(STAGING_DIR_HOST)/bin/}" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \ exit 1; \ fi; \ fi; \ |