Commit Graph

75 Commits (d90e805fe607f6455a6ae8631e91c960ba4deaa2)

Author SHA1 Message Date
Gabor Juhos d90e805fe6 build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted space
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
12 years ago
Florian Fainelli 7196f5d7c8 image.mk: don't squash file permissions in JFFS2 images
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
12 years ago
Jo-Philipp Wich deff2382d0 include/image.mk: /tmp should have mode 1777
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
12 years ago
Jo-Philipp Wich 6cdf25289c base-files: add permission exceptions, do not clobber shadow permissions - based on patch by Mark Mentovai <mark@moxienet.com>
SVN-Revision: 32073
12 years ago
Felix Fietkau 470b1f471a image: increase squashfs block size - visibly reduces image size in many cases
SVN-Revision: 29519
13 years ago
Jo-Philipp Wich 29123aee6d image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs -processors option
SVN-Revision: 28305
13 years ago
Felix Fietkau 0f93db2de5 default to using gzip with mksquashfs if lzma and xz are unavailable
SVN-Revision: 27748
13 years ago
John Crispin d5205c3ed2 extend squashfs padding for 256k flash sectors
SVN-Revision: 27404
13 years ago
Gabor Juhos 5206db4561 generic: use padjffs2 in prepare_generic_squashfs
SVN-Revision: 27356
13 years ago
Felix Fietkau e6aa1cab00 tools/squashfs4: update to version 4.2 (adds support for xz compression)
Based on a patch by Jonas Gorski

SVN-Revision: 26422
13 years ago
Jo-Philipp Wich 48c8a8ddb0 image.mk: only upgrade permissions instead of overwriting, utilize tar -p flag for targz image targets (#7667)
SVN-Revision: 26259
13 years ago
Imre Kaloz 66b08771ff cleanup
SVN-Revision: 24090
14 years ago
Imre Kaloz 5ea6194ab0 remove 2.6.25 support
SVN-Revision: 24089
14 years ago
Imre Kaloz 4052849677 switch from ext2 to ext4 (w/o) journaling
SVN-Revision: 24084
14 years ago
Felix Fietkau 6117c04c94 remove linux 2.4 specific build system code
SVN-Revision: 21951
14 years ago
Nicolas Thill c69cb2e520 image/ext2: fix rootfs partition size after [21362]
SVN-Revision: 21369
14 years ago
Nicolas Thill 23aa8be261 include: rearrange image.mk, indent, reorder, change some ifeq/ifneq tests
SVN-Revision: 21244
14 years ago
Nicolas Thill b3b591c000 buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZ
SVN-Revision: 21238
14 years ago
Nicolas Thill 7992df3721 images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is selected or not
SVN-Revision: 21237
14 years ago
Alexandros C. Couloumbis 668fd62080 don't use lzma/jffs2 on <2.6.33, set lzma/jffs2 as default for >=2.6.33. switch verbose mode on compresor statistics.
SVN-Revision: 20844
14 years ago
Alexandros C. Couloumbis 43ee14563c finalize lzma/jffs2 support (currently not enebled by default, for kernels >=2.6.33) based on Edgar Soldin patches: https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006550.html
SVN-Revision: 20837
14 years ago
Nicolas Thill e2b57ecf5f define a shared IMG_PREFIX variable used as a basename for image files, it contains board & subtarget infos (if appropriate) allowing subtargets to share the same bin directory without overwriting each other's files
SVN-Revision: 20834
14 years ago
Florian Fainelli 7af8ee0481 change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
14 years ago
Nicolas Thill a9dc020014 sort entries in images md5sums files
SVN-Revision: 20116
14 years ago
Lars-Peter Clausen d77662c7a3 image.mk: Adjust ubifs build behaviour to that of others image types
SVN-Revision: 19985
14 years ago
Imre Kaloz 7b367d0313 with no users left, remove support for 2.6.21
SVN-Revision: 19578
14 years ago
Felix Fietkau 42e4f83096 fix rootfs preparation with rootfs containing files with whitespaces in the filename (based on patch from #6551)
SVN-Revision: 19282
15 years ago
Lars-Peter Clausen db06ca593b Add support for building ubifs images.
SVN-Revision: 19097
15 years ago
Imre Kaloz 06d8dc9329 get rid of even more 2.6.28 stuff
SVN-Revision: 18953
15 years ago
Felix Fietkau d55a046c48 ar71xx: the squashfs-4k images are unreliable in some builds. add 4k, 8k padding to the generic squashfs images and use them on 4k devices as well
SVN-Revision: 18526
15 years ago
Felix Fietkau 7f75186333 unbreak brcm-2.4
SVN-Revision: 18287
15 years ago
Imre Kaloz 5aba9ecbd3 use the new option for creating squashfs4-lzma images
SVN-Revision: 18269
15 years ago
Imre Kaloz ed19cab256 swap logic on squashfs version selection
SVN-Revision: 18163
15 years ago
Gabor Juhos 71a3d54218 create v4 squashfs image for 2.6.31
SVN-Revision: 17406
15 years ago
Felix Fietkau dcd0e4a672 work around a threading bug in mksquashfs4 by limiting the number of threads to 1
SVN-Revision: 17146
15 years ago
Florian Fainelli 07c4108af6 use --binary option of md5sum to improve compatibility with other platforms (#5192)
SVN-Revision: 16977
15 years ago
Felix Fietkau 12b429b3a2 get rid of linux 2.6.29
SVN-Revision: 16883
15 years ago
Felix Fietkau 1165dfed6a enable lzma for squashfs4 by default
SVN-Revision: 15962
15 years ago
Gabor Juhos 7b7a99c771 create squashfs4 images if kernel version >=2.6.29
SVN-Revision: 15866
15 years ago
Ralph Hempel 47c78e48bd don't abort if the operation is failing ( if the board is connected via NFS files might be created by root and can't be changed at this point of time )
SVN-Revision: 14729
15 years ago
Felix Fietkau 6b6c8fd100 fix potential rootfs owner/group mismatch (tgz root only, patch from #4562)
SVN-Revision: 14569
15 years ago
Nicolas Thill 9b759f26c9 genext2fs: update to 1.4.1
SVN-Revision: 14536
15 years ago
Andy Boyett 44f3239622 generate md5 checksums of generated firware images. closes #4003 - checksums located in bin/md5sums - integrity can be verified using md5sum -c
SVN-Revision: 12889
16 years ago
Felix Fietkau a3a37d0bb1 rework parallel building to get rid of some warnings and add back support for parallelizing the kernel build fixes #3882
SVN-Revision: 12322
16 years ago
Gabor Juhos 5ee91fef1e strip kernel version from image names
SVN-Revision: 11398
16 years ago
Gabor Juhos c8d5db0698 fix generation of cpio.gz images
SVN-Revision: 10310
17 years ago
Felix Fietkau edbbf145d5 add cpio.gz support (patch from #2595)
SVN-Revision: 9986
17 years ago
John Crispin 9b467b5b28 remove whitespaces
SVN-Revision: 9354
17 years ago
John Crispin 215fa7eb8b added generation of x86 livecds, from #2391
SVN-Revision: 9191
17 years ago
Felix Fietkau a9d683ca91 major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
SVN-Revision: 8694
17 years ago