aboutsummaryrefslogtreecommitdiffstats
path: root/include/image.mk
Commit message (Collapse)AuthorAgeFilesLines
* image: ext4: rename config options as these are only used for ext4 image ↵John Crispin2014-06-021-1/+1
| | | | | | | | creation Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40926 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: ext4: allow creation of a journaling filesystemJohn Crispin2014-06-021-1/+1
| | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40925 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: ext4: allow to choose a block size for the rootfsJohn Crispin2014-06-021-2/+2
| | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40924 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: BT Home Hub 2B support - board supportJohn Crispin2014-04-031-2/+2
| | | | | | | | Board support patch for BT Home Hub 2B Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40370 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/make.mk: add support for ubinize-overlay.cfgJohn Crispin2014-04-031-10/+15
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40365 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38855 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38799 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: make MkuImage more genericLuka Perkov2013-10-231-3/+7
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38516 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38442 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: move mkits.sh script to more common placeLuka Perkov2013-10-161-0/+7
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38430 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38419 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ubifs: when creating ubi(fs) images profile originated arguments have priorityLuka Perkov2013-10-131-4/+10
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38381 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: introduce MkuImageARM functionLuka Perkov2013-10-131-0/+5
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38380 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38375 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: if possible use profile name when building .tar.gz imagesLuka Perkov2013-10-121-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38374 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: extend menu with few ubifs optionsLuka Perkov2013-10-041-1/+9
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38303 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: add hooks for kernel/DTB installation in root filesystemLuka Perkov2013-08-281-0/+2
| | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37852 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37847 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37514 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37452 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37050 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36860 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/image.mk: export ubifs image from mkfs.ubifsLuka Perkov2013-02-031-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35473 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35097 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34498 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34473 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34408 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34397 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32572 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add permission exceptions, do not clobber shadow ↵Jo-Philipp Wich2012-06-051-1/+1
| | | | | | permissions - based on patch by Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32073 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: increase squashfs block size - visibly reduces image size in many casesFelix Fietkau2011-12-131-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29519 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs ↵Jo-Philipp Wich2011-09-261-1/+1
| | | | | | -processors option git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28305 3c298f89-4303-0410-b956-a3cf2f4a3e73
* default to using gzip with mksquashfs if lzma and xz are unavailableFelix Fietkau2011-07-241-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27748 3c298f89-4303-0410-b956-a3cf2f4a3e73
* extend squashfs padding for 256k flash sectorsJohn Crispin2011-07-031-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27404 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: use padjffs2 in prepare_generic_squashfsGabor Juhos2011-07-021-9/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26422 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] image.mk: only upgrade permissions instead of overwriting, utilize ↵Jo-Philipp Wich2011-03-211-4/+6
| | | | | | tar -p flag for targz image targets (#7667) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26259 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cleanupImre Kaloz2010-11-221-6/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove 2.6.25 supportImre Kaloz2010-11-221-8/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24089 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch from ext2 to ext4 (w/o) journalingImre Kaloz2010-11-221-6/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24084 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove linux 2.4 specific build system codeFelix Fietkau2010-06-261-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21951 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image/ext2: fix rootfs partition size after [21362]Nicolas Thill2010-05-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21369 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: rearrange image.mk, indent, reorder, change some ifeq/ifneq testsNicolas Thill2010-04-291-79/+86
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21244 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZNicolas Thill2010-04-281-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21238 3c298f89-4303-0410-b956-a3cf2f4a3e73
* images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is ↵Nicolas Thill2010-04-281-11/+12
| | | | | | selected or not git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21237 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20844 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20834 3c298f89-4303-0410-b956-a3cf2f4a3e73
* change from /jffs to /overlay, patch from Daniel DickinsonFlorian Fainelli2010-03-211-2/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20356 3c298f89-4303-0410-b956-a3cf2f4a3e73