openwrt/include
Michael Pratt 5a028a8d73 host-build: fix stampfile name substitution per installed binaries
A funny bug was discovered where if the buildroot's path
has the name of the build target within it, it will also be substituted
along with the stampfile's name for each program,
causing an attempt to touch a file in a directory that doesn't exist.

...
...
touch: cannot touch '/Volumes/touch/openwrt/staging_dir/host/stamp/.touch_installed': No such file or directory
touch: cannot touch '/Volumes/ln/openwrt/staging_dir/host/stamp/.ln_installed': No such file or directory
touch: cannot touch '/Volumes/chown/openwrt/staging_dir/host/stamp/.chown_installed': No such file or directory
make[2]: *** [Makefile:50: /Volumes/coreutils/openwrt/staging_dir/host/stamp/.coreutils_installed] Error 1
...
...

Split up the path with $(dir) and $(notdir) before substitution to fix
the syntax.

Reported-by: Georgi Valkov <gvalkov@gmail.com>
Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2024-04-25 21:33:51 +02:00
..
site
autotools.mk
bpf.mk
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk include/download.mk: switch to zst compression 2024-04-06 11:24:18 +02:00
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk host-build: fix stampfile name substitution per installed binaries 2024-04-25 21:33:51 +02:00
image-commands.mk treewide: remove implicit SUBTARGET 2024-04-08 21:53:05 +02:00
image.mk treewide: remove implicit SUBTARGET 2024-04-08 21:53:05 +02:00
kernel-5.15 kernel: bump 5.15 to 5.15.155 2024-04-16 23:11:25 +02:00
kernel-6.1 kernel: bump 6.1 to 6.1.86 2024-04-14 18:03:37 +02:00
kernel-6.6 kernel: bump 6.6 to 6.6.28 2024-04-23 22:38:05 +02:00
kernel-build.mk
kernel-defaults.mk
kernel-version.mk
kernel.mk treewide: remove implicit SUBTARGET 2024-04-08 21:53:05 +02:00
logo.png
logo.svg
meson.mk tools/meson: static host and both libraries 2024-03-29 23:42:22 +01:00
netfilter.mk
nls.mk
openssl-module.mk
package-bin.mk
package-defaults.mk treewide: use APK compatible version schema 2024-03-22 22:14:22 +01:00
package-dumpinfo.mk
package-ipkg.mk
package-seccomp.mk
package.mk
prereq-build.mk
prereq.mk
quilt.mk
rootfs.mk Revert "build: don't drop 'user' flag when using the ImageBuilder" 2024-02-23 15:59:09 +01:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk
toolchain-build.mk
toplevel.mk
trusted-firmware-a.mk
u-boot.mk u-boot.mk: override default PATH to avoid pick hostpkg python 2024-03-02 14:17:31 +01:00
uclibc++.mk
unpack.mk
verbose.mk
version.mk treewide: remove implicit SUBTARGET 2024-04-08 21:53:05 +02:00