From: Ilya Katsnelson Date: Sun, 29 Oct 2023 22:39:31 +0000 (+0300) Subject: build: replace `true` with a custom noop script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2c22589782d74e9db5d79f72b259df08beb5ef7a;p=openwrt%2Fstaging%2Fnbd.git build: replace `true` with a custom noop script `true` might be a shell built-in, or simply not accessible in the hardcoded locations. Replace it with a custom script that does nothing. Signed-off-by: Ilya Katsnelson --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index e5f20fff22..49340ce3e4 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -238,4 +238,4 @@ prereq: $(STAGING_DIR_HOST)/bin/mkhash $(STAGING_DIR_HOST)/bin/xxd # Install ldconfig stub $(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \ - $(LN) $(firstword $(wildcard /bin/true /usr/bin/true)) $(STAGING_DIR_HOST)/bin/ldconfig)) + $(LN) $(SCRIPT_DIR)/noop.sh $(STAGING_DIR_HOST)/bin/ldconfig)) diff --git a/scripts/noop.sh b/scripts/noop.sh new file mode 100755 index 0000000000..96b71fe3bf --- /dev/null +++ b/scripts/noop.sh @@ -0,0 +1,2 @@ +#!/bin/sh +# This script does nothing, intentionally.