aboutsummaryrefslogtreecommitdiffstats
path: root/target/imagebuilder/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* build: introduce STAGING_DIR_IMAGEJo-Philipp Wich2017-01-271-0/+3
| | | | | | | | | | | Introduce a new location STAGING_DIR_IMAGE which is intended to be used by bootloader iamges and similar image-related artifacts. This directory is guaranteed to be persistent across kernel upgrades which might involve a removal of KERNEL_BUILD_DIR and is guranteed to be bundled with the image builder. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* imagebuilder: remove existing debug kernel imageFelix Fietkau2017-01-131-0/+1
| | | | | | Reduces tarball size and improves build time Signed-off-by: Felix Fietkau <nbd@nbd.name>
* imagebuilder: remove existing root filesystem imagesFelix Fietkau2017-01-131-0/+1
| | | | | | Reduces tarball size and improves build time Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: rework library bundlingJo-Philipp Wich2017-01-101-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the bundle-libraries.sh implementation to use a more robust approach for executing host binaries through the shipped ELF loader and libraries. The previous approach relied on symlinks pointing to a wrapper script which caused various issues, especially with multicall binaries as the original argv[0] name was not preserved through the ld.so invocation. Another down- side was the fact that the actual binaries got moved into another directory which caused executables to fail looking up resources with paths relative to the executable location. The new library wrapper implements the following improvements: - Instead of symlinks pointing to a common wrapper, each ELF executable is now replaced by a unqiue shell script which retains the original program name getting called - Instead of letting ld.so invoke the ELF executable directly, launch the final ELF binary through a helper program which fixes up the argv[0] argument for the target program - Support sharing a common location for the bundled libraries instead of having one copy in each directory containing wrapped binaries Finally modify the SDK build to wrap the staging_dir and toolchain binaries which allows to use the SDK on systems with a different glibc version. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* target/imagebuilder: Switch to xz compression instead of bz2Daniel Engberg2016-10-151-4/+4
| | | | | | | Switch to xz compression instead of using bz2. Saves about 20% of total size (ar71xx) Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* target/{sdk,imagebuild}: Fix for symlink-treeDaniel Dickinson2016-09-301-1/+1
| | | | | | | | | With symlink tree some directories are just symlinked which means IB and SDK end up with a symlink instead of an actual directory; this fixes the missing files by dereferencesing the directories instead of copying the symlinks. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* IB/SDK/toolchain: use lower cases filenamesAlexander Couzens2016-06-011-1/+1
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* IB/SDK/toolchain: use VERSION_DIST_SANITIZED instead of VERSION_DISTAlexander Couzens2016-06-011-1/+1
| | | | | | VERSION_DIST can contains spaces which produces problems when used as file name Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* imagebuilder: use correct package directory when bundling kmods and libcJo-Philipp Wich2016-04-221-2/+2
| | | | | | | | | | | The libc and kernel package files moved since the introduction of shared packages and the changed output directory layout. This causes the generated ImageBuilder archive to lack the necessary "libc" and "kernel" meta packages, leading to opkg install errors later on. Use the FeedPackageDir macro to figure out the proper source directory to use. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* imagebuilder: fix standalone operationJo-Philipp Wich2016-04-131-1/+2
| | | | | | Fix standalone ImageBuilders after the package layout rework. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* targets: Use configured distribution name for SDK, IB, and Toolchain tarball ↵Felix Fietkau2016-01-031-1/+1
| | | | | | | | | | | | names We allow to configure the version distribution name; let's also use it for the tarballs (SDK, ImageBuilder, and SDK). Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> SVN-Revision: 48081
* feeds: use common macro "FeedSourcesAppend" to populate opkg configurationsJo-Philipp Wich2015-05-281-12/+2
| | | | | | | | | This introduces a common macro to assemble the correct url templates to avoid code duplication and have the feed config handling in a central place. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45799
* IB: use online repositoriesJo-Philipp Wich2015-05-271-0/+31
| | | | | | | | | | | | Change the IB packaging to only embed libc, kernel and kmod packages by default and generate repositories.conf to refer to the remote package repositories. Introduce a new config option CONFIG_IB_STANDALONE which restores the old behaviour of building self contained IB archives. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45772
* imagebuilder: align filename with SDKJo-Philipp Wich2015-02-071-5/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44313
* imagebuilder: don't pregenerate package index, strip host binariesJo-Philipp Wich2015-02-061-2/+2
| | | | | | | | | | | | The package index is generated on first use anyway, therefore it makes no sense to continue shipping it. Also sstrip the bundled host binaries when packing the IB to save some additional space. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44293
* imagebuilder: use FreeBSD compatible tar invocationJo-Philipp Wich2015-02-061-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44288
* build: add version number to filenamesJo-Philipp Wich2015-01-081-1/+1
| | | | | | | | | | | | This commit introduces a new option CONFIG_VERSION_FILENAMES which causes OpenWrt to embed the version number in generated image files, SDK- and ImageBuilder archives. The option is enabled by default if CONFIG_VERSIONOPT is set. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43869
* imagebuilder: fix typo that copied grub to the wrong folderJohn Crispin2014-07-241-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41824
* imagebuilder: copy dts folderJohn Crispin2014-07-211-1/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41790
* imagebuilder: x86 fails to build inside the imagebuilderJohn Crispin2014-07-101-1/+4
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41580
* target/imagebuilder: add missing package index (fixes #16675)Felix Fietkau2014-06-021-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40968
* imagebuilder: bundle dtc (#12953, #14741)Jo-Philipp Wich2014-05-141-0/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 40767
* derive system from hostcc to allow building inside a chrootJohn Crispin2012-08-221-2/+2
| | | | SVN-Revision: 33228
* use bundle-libraries.sh to install required host utilities into imagebuilder ↵Jo-Philipp Wich2012-08-151-1/+2
| | | | | | staging tree SVN-Revision: 33196
* add $(SUBTARGET) to the filename if availableJohn Crispin2012-05-301-1/+1
| | | | SVN-Revision: 32007
* don't overwrite version.mk, substitute REVISION insteadJo-Philipp Wich2012-04-171-2/+2
| | | | SVN-Revision: 31327
* populate repositories.conf from version.mkJo-Philipp Wich2012-04-121-1/+2
| | | | SVN-Revision: 31268
* copy kernel .config, needed by mkfs.jffs2 to detect compression capabilitiesJo-Philipp Wich2010-10-261-1/+3
| | | | SVN-Revision: 23639
* - sync with host opkg changes - get rid of autogenerated opkg.conf - utilize ↵Jo-Philipp Wich2010-09-121-1/+1
| | | | | | dl/ as package cache, useful for remote downloads SVN-Revision: 23039
* - add a helper script to generate opkg.conf, attempt to detect package ↵Jo-Philipp Wich2010-09-081-1/+4
| | | | | | architecture from packages/ - fix package defaults when no package override is given, IB previously aggregated the defautls of all profiles - introduce a repositories.conf, allows using remote opkg repositories in imagebuilder SVN-Revision: 22978
* - correctly copy .config when scripts/env is used in the buildroot - prevent ↵Jo-Philipp Wich2010-04-271-1/+2
| | | | | | user provides PACKAGES from overriding per-profile defaults SVN-Revision: 21213
* imagebuilder: various fixes * only copy host tools from ↵Nicolas Thill2010-03-301-7/+5
| | | | | | $(STAGING_DIR_HOST)/bin * remove more target patches, and also target files * combine the 3 find commands into a single one SVN-Revision: 20597
* imagebuilder: add REVISION variable (closes #6795)Gabor Juhos2010-03-081-1/+2
| | | | SVN-Revision: 20064
* get rid of $Id$ - it has never helped us and it has broken too many patches ;)Felix Fietkau2009-04-171-1/+0
| | | | SVN-Revision: 15242
* fix ImageBuilder (closes: #3863)Nicolas Thill2008-08-221-1/+2
| | | | SVN-Revision: 12370
* some more build system cleanupFelix Fietkau2008-08-171-0/+2
| | | | SVN-Revision: 12329
* strip -$(KERNEL) from sdk/imagebuilder namesFelix Fietkau2007-12-131-1/+1
| | | | SVN-Revision: 9742
* fix imagebuilder compileFelix Fietkau2007-12-131-2/+2
| | | | SVN-Revision: 9736
* Use $(CP) instead of $(INSTALL_BIN) for binaries.Felix Fietkau2007-12-091-2/+2
| | | | | | Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net> SVN-Revision: 9694
* fix the image builderFelix Fietkau2007-11-141-17/+19
| | | | SVN-Revision: 9549
* Fix the imagebuilder generation (does not mean it works with the recent changes)Florian Fainelli2007-09-091-1/+1
| | | | SVN-Revision: 8710
* Fix image builder generation (#2213)Florian Fainelli2007-08-141-1/+1
| | | | SVN-Revision: 8412
* Fix the imagebuilder compilation (#2213)Florian Fainelli2007-08-131-1/+1
| | | | SVN-Revision: 8410
* Suppress spaces in uname -mFlorian Fainelli2007-06-121-1/+1
| | | | SVN-Revision: 7594
* fixes for a few build errors on osx without finkFelix Fietkau2007-04-291-2/+2
| | | | SVN-Revision: 7065
* revert find | xargs => find | exec changes - this is completely unnecessary ↵Felix Fietkau2007-04-121-2/+2
| | | | | | and introduces additional dependencies that we do not need SVN-Revision: 6942
* Accidentially broke sdk and imagebuilder in [6857]Mike Baker2007-04-031-1/+1
| | | | SVN-Revision: 6858
* more [6849]Mike Baker2007-04-031-2/+2
| | | | SVN-Revision: 6850
* Use find -exec instead of xargsFlorian Fainelli2007-04-021-2/+2
| | | | SVN-Revision: 6837
* include .pkginfo in image builderFelix Fietkau2007-01-201-0/+1
| | | | SVN-Revision: 6135