summaryrefslogtreecommitdiffstats
path: root/include/image.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted spacejuhosg2012-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 imagesflorian2012-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 1777jow2012-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 ↵jow2012-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 casesnbd2011-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 ↵jow2011-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 unavailablenbd2011-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 sectorsblogic2011-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_squashfsjuhosg2011-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)nbd2011-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 ↵jow2011-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
* cleanupkaloz2010-11-221-6/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove 2.6.25 supportkaloz2010-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) journalingkaloz2010-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 codenbd2010-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]nico2010-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 testsnico2010-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/TARGZnico2010-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 ↵nico2010-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. ↵acoul2010-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 ↵acoul2010-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 ↵nico2010-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 Dickinsonflorian2010-03-211-2/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sort entries in images md5sums filesnico2010-03-101-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20116 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: Adjust ubifs build behaviour to that of others image typeslars2010-03-051-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* with no users left, remove support for 2.6.21kaloz2010-02-111-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19578 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix rootfs preparation with rootfs containing files with whitespaces in the ↵nbd2010-01-221-3/+3
| | | | | | filename (based on patch from #6551) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19282 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add support for building ubifs images.lars2010-01-111-0/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19097 3c298f89-4303-0410-b956-a3cf2f4a3e73
* get rid of even more 2.6.28 stuffkaloz2009-12-271-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18953 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: the squashfs-4k images are unreliable in some builds. add 4k, 8k ↵nbd2009-11-241-4/+8
| | | | | | padding to the generic squashfs images and use them on 4k devices as well git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18526 3c298f89-4303-0410-b956-a3cf2f4a3e73
* unbreak brcm-2.4nbd2009-11-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18287 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use the new option for creating squashfs4-lzma imageskaloz2009-11-021-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18269 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swap logic on squashfs version selectionkaloz2009-10-261-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18163 3c298f89-4303-0410-b956-a3cf2f4a3e73
* create v4 squashfs image for 2.6.31juhosg2009-08-261-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17406 3c298f89-4303-0410-b956-a3cf2f4a3e73
* work around a threading bug in mksquashfs4 by limiting the number of threads ↵nbd2009-08-061-1/+1
| | | | | | to 1 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17146 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use --binary option of md5sum to improve compatibility with other platforms ↵florian2009-07-251-1/+1
| | | | | | (#5192) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16977 3c298f89-4303-0410-b956-a3cf2f4a3e73
* get rid of linux 2.6.29nbd2009-07-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16883 3c298f89-4303-0410-b956-a3cf2f4a3e73
* enable lzma for squashfs4 by defaultnbd2009-05-211-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15962 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [image] create squashfs4 images if kernel version >=2.6.29juhosg2009-05-151-1/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15866 3c298f89-4303-0410-b956-a3cf2f4a3e73
* don't abort if the operation is failingralph2009-03-021-3/+3
| | | | | | | | ( if the board is connected via NFS files might be created by root and can't be changed at this point of time ) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14729 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix potential rootfs owner/group mismatch (tgz root only, patch from #4562)nbd2009-02-191-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14569 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] genext2fs: update to 1.4.1nico2009-02-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14536 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generate md5 checksums of generated firware images. closes #4003agb2008-10-071-0/+9
| | | | | | | - checksums located in bin/md5sums - integrity can be verified using md5sum -c git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12889 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rework parallel building to get rid of some warningsnbd2008-08-161-0/+1
| | | | | | | | and add back support for parallelizing the kernel build fixes #3882 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [images] strip kernel version from image namesjuhosg2008-06-071-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11398 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix generation of cpio.gz imagesjuhosg2008-01-291-6/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10310 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add cpio.gz support (patch from #2595)nbd2007-12-281-0/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9986 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove whitespacesblogic2007-10-181-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9354 3c298f89-4303-0410-b956-a3cf2f4a3e73
* added generation of x86 livecds, from #2391blogic2007-10-081-0/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9191 3c298f89-4303-0410-b956-a3cf2f4a3e73
* major target cleanup. it is now possible to have subtargets that can ↵nbd2007-09-081-0/+1
| | | | | | override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73