openwrt/include
Petr Štetiar 9885d3aec1 build: Introduce building of artifacts
We currently could (ab)use IMAGES for this task, but the downside is,
that the filenames has filesystem tied to the filename, which might be
confusing as the artifact itself don't has to be used with that specific
filesystem. Another downside is, that the artifacts built with IMAGES
target are build for every FILESYSTEMS filesystem.

Consider following use case:

 define Device/apalis
   ...
   FILESYSTEMS := ext4 squashfs
   IMAGES := spl-uboot.bin recovery.scr
   IMAGE/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
   IMAGE/recovery.scr := recovery-scr
 endef

Where we would get target binaries with following filenames:

 openwrt-imx6-apalis-squashfs.recovery.scr
 openwrt-imx6-apalis-squashfs.spl-uboot.bin
 openwrt-imx6-apalis-ext4.recovery.scr
 openwrt-imx6-apalis-ext4.spl-uboot.bin

With proposed patch, we could now just do:

 define Device/apalis
   ...
   ARTIFACTS := spl-uboot.bin recovery.scr
   ARTIFACT/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
   ARTIFACT/recovery.scr := recovery-scr
 endef

Which would produce target binaries with following filenames:

 openwrt-imx6-apalis-recovery.scr
 openwrt-imx6-apalis-spl-uboot.bin

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from 493c9a3551)
2018-12-18 17:22:03 +01:00
..
site include/site: add powerpc64 config 2017-10-24 13:24:04 +02:00
autotools.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
cmake.mk build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk 2018-10-04 22:26:22 +02:00
debug.mk include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 2017-02-05 22:17:30 +01:00
device_table.txt image: ensure that /dev/console exist in rootfs images 2013-08-27 12:02:58 +00:00
download.mk downloads.mk: introduce name-agnostic PROJECT_GIT variable 2018-01-10 21:27:31 +01:00
feeds.mk include/feeds.mk: fix distfeeds.conf without per-feed repos 2018-07-31 14:06:07 +02:00
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
hardening.mk build: ASLR hardening use $(FPIC) 2018-12-18 09:44:04 +01:00
host-build.mk build: do not override CCACHE_DIR when ccache is disabled 2018-12-18 09:50:20 +01:00
image-commands.mk build: use busybox gzip compatible force option 2018-06-18 21:31:30 +02:00
image-legacy.mk image: fix ar71xx legacy images 2017-07-15 07:02:59 +02:00
image.mk build: Introduce building of artifacts 2018-12-18 17:22:03 +01:00
kernel-build.mk include/kernel-build.mk: fix kernel rebuild on backport patch changes 2018-07-14 13:10:08 +02:00
kernel-defaults.mk config: don't define the same symbol twice 2018-01-17 11:07:17 +01:00
kernel-version.mk kernel: bump 4.14 to 4.14.89 2018-12-18 15:12:06 +01:00
kernel.mk build: remove obsolete -rc kernel testing rewrites 2018-12-18 17:22:03 +01:00
netfilter.mk netfilter: add bpf match support 2018-12-18 09:44:01 +01:00
nls.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 2017-01-23 13:49:45 +01:00
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 2018-03-07 09:59:08 +01:00
package-dumpinfo.mk include/package-dumpinfo.mk: don't duplicate source package information for every binary package 2018-01-13 19:54:45 +01:00
package-ipkg.mk build: fix compile error when a package includes itself in PROVIDES 2018-07-20 15:37:17 +02:00
package-seccomp.mk include: add a seccomp filter install wrapper 2015-03-26 10:57:56 +00:00
package.mk build: do not override CCACHE_DIR when ccache is disabled 2018-12-18 09:50:20 +01:00
prereq-build.mk build: remove GNU time dependency 2018-12-18 11:01:54 +01:00
prereq.mk include: extend SetupHostCommand macro to accept more arguments 2018-04-05 13:58:15 +02:00
quilt.mk kernel: split patches folder up into backport, pending and hack folders 2017-08-05 08:46:36 +02:00
rootfs.mk imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00
scan.awk build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: fix target metadata scan dependencies 2018-07-03 11:20:42 +02:00
scons.mk build: use CXXFLAGS if defined 2016-10-13 17:04:43 +02:00
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk build: remove GNU time dependency 2018-12-18 11:01:54 +01:00
target.mk kernel: remove linux 4.4 support 2018-08-08 09:56:49 +02:00
toolchain-build.mk build: stop overriding STAGING_DIR_HOST for toolchain build 2017-05-25 19:01:07 +02:00
toplevel.mk build: fix target metadata scan dependencies 2018-07-03 11:20:42 +02:00
u-boot.mk u-boot.mk: add HOST_LDFLAGS to UBOOT_MAKE_FLAGS 2018-02-10 20:52:31 +01:00
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 2013-05-09 20:50:49 +00:00
unpack.mk build: unzip: perform operations quietly 2017-01-05 11:09:13 +01:00
verbose.mk include/verbose.mk: Add sc to failure message 2018-12-18 10:15:53 +01:00
version.mk base-files: fix HOME_URL replace 2018-12-18 10:27:36 +01:00