You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/include
Petr Štetiar 493c9a3551 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>
6 years ago
..
site include/site: add powerpc64 config 7 years ago
autotools.mk treewide: fix build depends to refer to source package names 6 years ago
cmake.mk build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk 6 years ago
debug.mk include: remove trailing whitespaces 9 years ago
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago
download.mk download.mk: enable DownloadMethod/github_archive 6 years ago
feeds.mk include/feeds.mk: fix distfeeds.conf without per-feed repos 6 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago
hardening.mk build: fix ASLR for LTO packages 6 years ago
host-build.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
image-commands.mk image: ignore usign build errors 6 years ago
image-legacy.mk image: fix ar71xx legacy images 7 years ago
image.mk build: Introduce building of artifacts 6 years ago
kernel-build.mk include/kernel-build.mk: fix kernel rebuild on backport patch changes 6 years ago
kernel-defaults.mk config: don't define the same symbol twice 6 years ago
kernel-version.mk kernel: bump 3.18 to 3.18.126 6 years ago
kernel.mk build: remove obsolete -rc kernel testing rewrites 6 years ago
netfilter.mk Revert "netfilter: separate IPv6 relevant kernel modules from IPv4" 6 years ago
nls.mk treewide: fix build depends to refer to source package names 6 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 6 years ago
package-dumpinfo.mk include/package-dumpinfo.mk: don't duplicate source package information for every binary package 6 years ago
package-ipkg.mk build: fix compile error when a package includes itself in PROVIDES 6 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
prereq-build.mk build: remove GNU time dependency 6 years ago
prereq.mk include: extend SetupHostCommand macro to accept more arguments 6 years ago
quilt.mk kernel: split patches folder up into backport, pending and hack folders 7 years ago
rootfs.mk imagebuilder: reuse rootfs preparation from rootfs.mk 6 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: fix target metadata scan dependencies 6 years ago
scons.mk build: use CXXFLAGS if defined 8 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago
subdir.mk build: remove GNU time dependency 6 years ago
target.mk hostapd: add basic variant 6 years ago
toolchain-build.mk build: stop overriding STAGING_DIR_HOST for toolchain build 7 years ago
toplevel.mk build: fix target metadata scan dependencies 6 years ago
u-boot.mk u-boot.mk: add HOST_LDFLAGS to UBOOT_MAKE_FLAGS 6 years ago
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 11 years ago
unpack.mk build: unzip: perform operations quietly 7 years ago
verbose.mk include/verbose.mk: Add sc to failure message 6 years ago
version.mk base-files: fix HOME_URL replace 6 years ago