aboutsummaryrefslogtreecommitdiffstats
path: root/include/image.mk
Commit message (Collapse)AuthorAgeFilesLines
* image: remove spaces from toupper functionLuka Perkov2013-11-181-1/+1
| | | | | | | | The extra prefix space is passed to the caller. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38855
* image: don't force ubifs journal sizeLuka Perkov2013-11-141-1/+1
| | | | | | | | | Small journal size can lead to problems if nand flash is too big. By default ubifs will use ~12% of volume size or a maximum of 8MiB. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38799
* build: make MkuImage more genericLuka Perkov2013-10-231-3/+7
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38516
* build: set owner root for all files on ubifs creationLuka Perkov2013-10-181-0/+1
| | | | | | | | | | When creating an image it makes no sense to have files owned by the uid and gid on the host (and even creates a bug when for example dropbear authorized_keys is included via env/files). Signed-off-by: Joris de Vries <joris@apptrician.nl> SVN-Revision: 38442
* build: move mkits.sh script to more common placeLuka Perkov2013-10-161-0/+7
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38430
* ubifs: remove breaking commas from ubi callsLuka Perkov2013-10-151-2/+2
| | | | | | | | | | The extra commas get output by the shell resulting in errors since the commands that get called with those extra commas are then malformed. Signed-off-by: Joris de Vries <joris@apptrician.nl> SVN-Revision: 38419
* ubifs: when creating ubi(fs) images profile originated arguments have priorityLuka Perkov2013-10-131-4/+10
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38381
* image: introduce MkuImageARM functionLuka Perkov2013-10-131-0/+5
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38380
* ubifs: enable building modular imagesLuka Perkov2013-10-121-6/+16
| | | | | | | | | Now it is possible to build ubi/ubifs images for only selected boards inside single target. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38375
* image: if possible use profile name when building .tar.gz imagesLuka Perkov2013-10-121-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38374
* build: extend menu with few ubifs optionsLuka Perkov2013-10-041-1/+9
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38303
* image: generate separate jffs2 images w/o paddingGabor Juhos2013-09-251-3/+4
| | | | | | | | | The new root.jffs2-*-raw images can be used for firmware images with custom padding requirements. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38196
* image: add hooks for kernel/DTB installation in root filesystemLuka Perkov2013-08-281-0/+2
| | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 37852
* image: ensure that /dev/console exist in rootfs imagesGabor Juhos2013-08-271-3/+8
| | | | | | | | | | | | | Linux expects that the /dev/console node is present in the rootfs image. Create the node in rootfs images, in order to make std{in,out,err} usable even in early init process. Note: tar.gz and cpio.gz images are not handled yet. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37847
* image: fix a typo in JFFS2OPTS to fix jffs2 rootfs generationGabor Juhos2013-07-231-1/+1
| | | | | | | | | Due to a typo in the Makefile variable, mkfs.jffs2 is called without the correct parameters. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37514
* image: fix initramfs image nameGabor Juhos2013-07-191-1/+1
| | | | | | | | | | | Preserve order of components in initramfs image filename when doing copy from $(KDIR) to $(BIN_DIR). Patchwork: http://patchwork.openwrt.org/patch/3811/ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37452
* include/image.mk: do not make initramfs build exclusiveFlorian Fainelli2013-06-271-17/+17
| | | | | | | | Allow building initramfs along with other types of filesystems. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 37050
* target: split jffs2 NAND out of jffs2Jonas Gorski2013-06-051-7/+19
| | | | | | | | | | | | Make jffs2_nand a separate option so this can be triggered without forcing jffs2 images for nor targets. Adds a new NAND_BLOCKSIZE variable that allows setting the generated layout in <page_size>:<block_size> pairs. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36860
* include/image.mk: export ubifs image from mkfs.ubifsLuka Perkov2013-02-031-0/+1
| | | | SVN-Revision: 35473
* image.mk: use XZ bcj architecture filter if availableFlorian Fainelli2013-01-111-1/+4
| | | | | | | | | | xz supports using an architecture specific BCJ filter, use that one to save us a couple kB while producing squashfs filesystems (mimics the Linux kernel). Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35097
* Revert "include/image.mk: call Image/Build/{cpiogz,targz}"Florian Fainelli2012-12-041-2/+0
| | | | | | | | This breaks on platforms building their own targz/cpioz images. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34498
* include/image.mk: call Image/Build/{cpiogz,targz}Florian Fainelli2012-12-041-0/+2
| | | | | | | | | | | | | All Image/mkfs/... macros call the Image/Build except for Image/mkfs/targz and Image/mkfs/cpiogz This patch adds the Image/Build call for Image/mkfs/targz and Image/mkfs/cpiogz. Signed-off-by: Maarten Bezemer <m.m.bezemer@utwente.nl> Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34473
* build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted spaceGabor Juhos2012-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | The genext2fs tool will 'reserve' 5% of the image size by default, apparently by creating a huge lost+found directory. In fact it seemed to be much more than 5% in practice — I saw an image with 8MiB used, and recovered about 2MiB of it by deleting the 'empty' lost+found directory: /dev/loop0 48377 8482 37438 19% /mnt/spare # rmdir lost+found/ /dev/loop0 48377 6014 39906 14% /mnt/spare This makes it configurable, but leaves it at the genext2fs default of 5% for now. It should probably be changed to default to zero, but that can be a separate patch. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34408
* image.mk: don't squash file permissions in JFFS2 imagesFlorian Fainelli2012-11-271-2/+2
| | | | | | | | | | | | | | | Currently we call mkfs.jffs2 --squash, which will change both file permissions and owners. If we have some file with suid bits, it will clear these bits. Thus it's enough to just squash file owners, by replacing that argument to --squash-uids. Signed-off-by: Jonh Wendell <jonh.wendell@oiwifi.com.br> Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34397
* include/image.mk: /tmp should have mode 1777Jo-Philipp Wich2012-07-011-1/+1
| | | | | | | | | | On the off chance that the root filesystem's /tmp is used directly as a temporary directory instead of having a tmpfs mounted over it, it should have the sticky bit set. Signed-off-by: Mark Mentovai <mark@moxienet.com> SVN-Revision: 32572
* base-files: add permission exceptions, do not clobber shadow permissions - ↵Jo-Philipp Wich2012-06-051-1/+1
| | | | | | based on patch by Mark Mentovai <mark@moxienet.com> SVN-Revision: 32073
* image: increase squashfs block size - visibly reduces image size in many casesFelix Fietkau2011-12-131-1/+3
| | | | SVN-Revision: 29519
* image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs ↵Jo-Philipp Wich2011-09-261-1/+1
| | | | | | -processors option SVN-Revision: 28305
* default to using gzip with mksquashfs if lzma and xz are unavailableFelix Fietkau2011-07-241-0/+1
| | | | SVN-Revision: 27748
* extend squashfs padding for 256k flash sectorsJohn Crispin2011-07-031-2/+2
| | | | SVN-Revision: 27404
* generic: use padjffs2 in prepare_generic_squashfsGabor Juhos2011-07-021-9/+1
| | | | SVN-Revision: 27356
* tools/squashfs4: update to version 4.2 (adds support for xz compression)Felix Fietkau2011-04-031-1/+9
| | | | | | Based on a patch by Jonas Gorski SVN-Revision: 26422
* image.mk: only upgrade permissions instead of overwriting, utilize tar -p ↵Jo-Philipp Wich2011-03-211-4/+6
| | | | | | flag for targz image targets (#7667) SVN-Revision: 26259
* cleanupImre Kaloz2010-11-221-6/+1
| | | | SVN-Revision: 24090
* remove 2.6.25 supportImre Kaloz2010-11-221-8/+0
| | | | SVN-Revision: 24089
* switch from ext2 to ext4 (w/o) journalingImre Kaloz2010-11-221-6/+11
| | | | SVN-Revision: 24084
* remove linux 2.4 specific build system codeFelix Fietkau2010-06-261-1/+1
| | | | SVN-Revision: 21951
* image/ext2: fix rootfs partition size after [21362]Nicolas Thill2010-05-051-1/+1
| | | | SVN-Revision: 21369
* include: rearrange image.mk, indent, reorder, change some ifeq/ifneq testsNicolas Thill2010-04-291-79/+86
| | | | SVN-Revision: 21244
* buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZNicolas Thill2010-04-281-5/+5
| | | | SVN-Revision: 21238
* images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is ↵Nicolas Thill2010-04-281-11/+12
| | | | | | selected or not SVN-Revision: 21237
* don't use lzma/jffs2 on <2.6.33, set lzma/jffs2 as default for >=2.6.33. ↵Alexandros C. Couloumbis2010-04-131-6/+20
| | | | | | switch verbose mode on compresor statistics. SVN-Revision: 20844
* finalize lzma/jffs2 support (currently not enebled by default, for kernels ↵Alexandros C. Couloumbis2010-04-131-1/+6
| | | | | | >=2.6.33) based on Edgar Soldin patches: https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006550.html SVN-Revision: 20837
* define a shared IMG_PREFIX variable used as a basename for image files, it ↵Nicolas Thill2010-04-121-4/+6
| | | | | | contains board & subtarget infos (if appropriate) allowing subtargets to share the same bin directory without overwriting each other's files SVN-Revision: 20834
* change from /jffs to /overlay, patch from Daniel DickinsonFlorian Fainelli2010-03-211-2/+1
| | | | SVN-Revision: 20356
* sort entries in images md5sums filesNicolas Thill2010-03-101-1/+1
| | | | SVN-Revision: 20116
* image.mk: Adjust ubifs build behaviour to that of others image typesLars-Peter Clausen2010-03-051-1/+2
| | | | SVN-Revision: 19985
* with no users left, remove support for 2.6.21Imre Kaloz2010-02-111-1/+1
| | | | SVN-Revision: 19578
* fix rootfs preparation with rootfs containing files with whitespaces in the ↵Felix Fietkau2010-01-221-3/+3
| | | | | | filename (based on patch from #6551) SVN-Revision: 19282
* Add support for building ubifs images.Lars-Peter Clausen2010-01-111-0/+10
| | | | SVN-Revision: 19097