Openwrt/include
Sebastian Kemper f58d323534 build: allow file modes per binary package
Currently the global variable PKG_FILE_MODES is used for all ipkg
creations. This works for Makefiles which output a single package, or
variants of a single package.

But if a Makefile outputs multiple packages that each contain different
files, setting PKG_FILE_MODES causes build failure when any of the files
in the variable do not exist in the folder that is currently being
packaged.

Example:

/openwrt/staging_dir/host/bin/fakeroot -l /openwrt/staging_dir/host/lib/libfakeroot.so -f /openwrt/staging_dir/host/bin/faked /openwrt/scripts/ipkg-build -m "/usr/lib/mariadb/plugin/auth_pam_tool_dir:root:376:0750" /openwrt/build_dir/target-mips_24kc_musl/mariadb-10.4.13/ipkg-mips_24kc/mariadb-server-plugin-disks /openwrt/bin/packages/mips_24kc/packages
+chown: cannot access '/openwrt/build_dir/target-mips_24kc_musl/mariadb-10.4.13/ipkg-mips_24kc/mariadb-server-plugin-disks//usr/lib/mariadb/plugin/auth_pam_tool_dir': No such file or directory

This commit changes the file mode handling a bit. The file mode can now
be set either globally via PKG_FILE_MODES (no behavior change) or on a
per-package basis via FILE_MODES. This way specific file modes can be
used for any particular package.

This behavior is already used for other OpenWrt variables, hence it is
familiar:

PKG_MAINTAINER vs MAINTAINER
PKG_SOURCE_SUBDIR vs SUBDIR
PKG_LICENSE vs LICENSE
...

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-09 14:13:59 +01:00
..
site
autotools.mk
cmake.mk cmake: Disable use of package registries 2020-08-24 18:53:59 +02:00
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk
image-commands.mk build: improve message for incompatible image on "legacy" devices 2020-08-08 16:13:51 +02:00
image-legacy.mk
image.mk build: unbreak fakeroot in SDK 2020-09-01 04:10:41 +01:00
kernel-build.mk
kernel-defaults.mk
kernel-version.mk kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
kernel.mk
netfilter.mk kernel: remove obsolete kernel version switches for 4.14 2020-09-02 16:29:23 +02:00
nls.mk
package-bin.mk
package-defaults.mk build: allow file modes per binary package 2020-09-09 14:13:59 +01:00
package-dumpinfo.mk
package-ipkg.mk build: allow file modes per binary package 2020-09-09 14:13:59 +01:00
package-seccomp.mk
package.mk build: fix extreme build system slowdown caused by SOURCE_DATE_EPOCH changes 2020-09-05 11:26:57 +02:00
prereq-build.mk
prereq.mk
quilt.mk
rootfs.mk treewide: replace which with command -v 2020-08-12 11:08:05 +02:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk build: sort default packages and split by newlines 2020-08-31 11:26:10 +01:00
toolchain-build.mk
toplevel.mk build: fix README.md reference after rename 2020-08-12 14:03:17 +02:00
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk build: switch VERSION_REPO to HTTPS 2020-08-31 11:26:10 +01:00