summaryrefslogtreecommitdiff
path: root/include/image.mk
AgeCommit message (Collapse)Author
2013-01-11image.mk: use XZ bcj architecture filter if availableflorian
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
2012-12-04Revert "include/image.mk: call Image/Build/{cpiogz,targz}"florian
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
2012-12-04include/image.mk: call Image/Build/{cpiogz,targz}florian
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
2012-11-29build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted spacejuhosg
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
2012-11-27[buildroot] image.mk: don't squash file permissions in JFFS2 imagesflorian
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
2012-07-01include/image.mk: /tmp should have mode 1777jow
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
2012-06-05[package] base-files: add permission exceptions, do not clobber shadow ↵jow
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
2011-12-13image: increase squashfs block size - visibly reduces image size in many casesnbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29519 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-26[include] image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs ↵jow
-processors option git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28305 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-24default to using gzip with mksquashfs if lzma and xz are unavailablenbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27748 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-03extend squashfs padding for 256k flash sectorsblogic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27404 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-02generic: use padjffs2 in prepare_generic_squashfsjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27356 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-03tools/squashfs4: update to version 4.2 (adds support for xz compression)nbd
Based on a patch by Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26422 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-21[include] image.mk: only upgrade permissions instead of overwriting, utilize ↵jow
tar -p flag for targz image targets (#7667) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-22cleanupkaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-22remove 2.6.25 supportkaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24089 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-22switch from ext2 to ext4 (w/o) journalingkaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26remove linux 2.4 specific build system codenbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-05image/ext2: fix rootfs partition size after [21362]nico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21369 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-29include: rearrange image.mk, indent, reorder, change some ifeq/ifneq testsnico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21244 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-28buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZnico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-28images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is ↵nico
selected or not git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-13don't use lzma/jffs2 on <2.6.33, set lzma/jffs2 as default for >=2.6.33. ↵acoul
switch verbose mode on compresor statistics. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20844 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-13finalize lzma/jffs2 support (currently not enebled by default, for kernels ↵acoul
>=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
2010-04-12define a shared IMG_PREFIX variable used as a basename for image files, it ↵nico
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
2010-03-21change from /jffs to /overlay, patch from Daniel Dickinsonflorian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20356 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-10sort entries in images md5sums filesnico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20116 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05image.mk: Adjust ubifs build behaviour to that of others image typeslars
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-11with no users left, remove support for 2.6.21kaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22fix rootfs preparation with rootfs containing files with whitespaces in the ↵nbd
filename (based on patch from #6551) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-11Add support for building ubifs images.lars
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-27get rid of even more 2.6.28 stuffkaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18953 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-24ar71xx: the squashfs-4k images are unreliable in some builds. add 4k, 8k ↵nbd
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
2009-11-03unbreak brcm-2.4nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18287 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-02use the new option for creating squashfs4-lzma imageskaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18269 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-26swap logic on squashfs version selectionkaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18163 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-26create v4 squashfs image for 2.6.31juhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17406 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06work around a threading bug in mksquashfs4 by limiting the number of threads ↵nbd
to 1 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17146 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-25use --binary option of md5sum to improve compatibility with other platforms ↵florian
(#5192) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16977 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-17get rid of linux 2.6.29nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16883 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-21enable lzma for squashfs4 by defaultnbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15962 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-15[image] create squashfs4 images if kernel version >=2.6.29juhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15866 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-02don't abort if the operation is failingralph
( 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
2009-02-19fix potential rootfs owner/group mismatch (tgz root only, patch from #4562)nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-17[tools] genext2fs: update to 1.4.1nico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14536 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-07generate md5 checksums of generated firware images. closes #4003agb
- 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
2008-08-16rework parallel building to get rid of some warningsnbd
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
2008-06-07[images] strip kernel version from image namesjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-29fix generation of cpio.gz imagesjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10310 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-28add cpio.gz support (patch from #2595)nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9986 3c298f89-4303-0410-b956-a3cf2f4a3e73