Commit graph

153 commits

Author SHA1 Message Date
Felix Fietkau
5eecccd75e build: make the squashfs block size configurable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40979
2014-06-02 17:04:34 +00:00
John Crispin
14421bd7fb image: ext4: rename config options as these are only used for ext4 image creation
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 40926
2014-06-02 12:44:10 +00:00
John Crispin
5fd7e00d9d image: ext4: allow creation of a journaling filesystem
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 40925
2014-06-02 12:44:07 +00:00
John Crispin
fe20272ab1 image: ext4: allow to choose a block size for the rootfs
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 40924
2014-06-02 12:44:04 +00:00
John Crispin
709cab91d2 lantiq: BT Home Hub 2B support - board support
Board support patch for BT Home Hub 2B

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 40370
2014-04-03 14:26:54 +00:00
John Crispin
08f03e959b include/make.mk: add support for ubinize-overlay.cfg
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40365
2014-04-03 14:26:31 +00:00
Luka Perkov
fbe8d27c7f image: remove spaces from toupper function
The extra prefix space is passed to the caller.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38855
2013-11-18 22:23:38 +00:00
Luka Perkov
b4ecda7b3f image: don't force ubifs journal size
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
2013-11-14 01:35:21 +00:00
Luka Perkov
7938d16451 build: make MkuImage more generic
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38516
2013-10-23 22:16:09 +00:00
Luka Perkov
03ccf4eeb0 build: set owner root for all files on ubifs creation
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
2013-10-18 00:11:20 +00:00
Luka Perkov
acdb0ac35c build: move mkits.sh script to more common place
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38430
2013-10-16 10:29:50 +00:00
Luka Perkov
41027beb69 ubifs: remove breaking commas from ubi calls
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
2013-10-15 21:37:31 +00:00
Luka Perkov
a531d21590 ubifs: when creating ubi(fs) images profile originated arguments have priority
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38381
2013-10-13 03:35:15 +00:00
Luka Perkov
5ed845fbea image: introduce MkuImageARM function
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38380
2013-10-13 03:35:14 +00:00
Luka Perkov
c808a4a7ef ubifs: enable building modular images
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
2013-10-12 21:44:48 +00:00
Luka Perkov
05625233ed image: if possible use profile name when building .tar.gz images
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38374
2013-10-12 21:44:46 +00:00
Luka Perkov
9051e79bc2 build: extend menu with few ubifs options
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38303
2013-10-04 10:49:47 +00:00
Gabor Juhos
261fc738cc image: generate separate jffs2 images w/o padding
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
2013-09-25 20:03:20 +00:00
Luka Perkov
99c46e474e image: add hooks for kernel/DTB installation in root filesystem
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 37852
2013-08-28 00:07:41 +00:00
Gabor Juhos
fd0325324f image: ensure that /dev/console exist in rootfs images
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
2013-08-27 12:02:58 +00:00
Gabor Juhos
ce9e0767b5 image: fix a typo in JFFS2OPTS to fix jffs2 rootfs generation
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
2013-07-23 10:21:21 +00:00
Gabor Juhos
c39b64d78f image: fix initramfs image name
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
2013-07-19 17:12:45 +00:00
Florian Fainelli
f5a0a578f8 include/image.mk: do not make initramfs build exclusive
Allow building initramfs along with other types of filesystems.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 37050
2013-06-27 19:58:35 +00:00
Jonas Gorski
9f7ef8d5f0 target: split jffs2 NAND out of jffs2
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
2013-06-05 20:58:03 +00:00
Luka Perkov
2477bab03e include/image.mk: export ubifs image from mkfs.ubifs
SVN-Revision: 35473
2013-02-03 21:00:24 +00:00
Florian Fainelli
ce5dd3b9e2 image.mk: use XZ bcj architecture filter if available
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
2013-01-11 16:44:26 +00:00
Florian Fainelli
5698062707 Revert "include/image.mk: call Image/Build/{cpiogz,targz}"
This breaks on platforms building their own targz/cpioz images.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34498
2012-12-04 22:59:05 +00:00
Florian Fainelli
592aa97626 include/image.mk: call Image/Build/{cpiogz,targz}
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
2012-12-04 16:19:09 +00:00
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
2012-11-29 17:37:15 +00:00
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
2012-11-27 18:42:45 +00:00
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
2012-07-01 11:48:54 +00:00
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
2012-06-05 18:02:00 +00:00
Felix Fietkau
470b1f471a image: increase squashfs block size - visibly reduces image size in many cases
SVN-Revision: 29519
2011-12-13 15:34:08 +00:00
Jo-Philipp Wich
29123aee6d image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs -processors option
SVN-Revision: 28305
2011-09-26 02:02:35 +00:00
Felix Fietkau
0f93db2de5 default to using gzip with mksquashfs if lzma and xz are unavailable
SVN-Revision: 27748
2011-07-24 09:16:55 +00:00
John Crispin
d5205c3ed2 extend squashfs padding for 256k flash sectors
SVN-Revision: 27404
2011-07-03 17:37:46 +00:00
Gabor Juhos
5206db4561 generic: use padjffs2 in prepare_generic_squashfs
SVN-Revision: 27356
2011-07-02 08:37:58 +00:00
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
2011-04-03 01:02:00 +00:00
Jo-Philipp Wich
48c8a8ddb0 image.mk: only upgrade permissions instead of overwriting, utilize tar -p flag for targz image targets (#7667)
SVN-Revision: 26259
2011-03-21 17:38:15 +00:00
Imre Kaloz
66b08771ff cleanup
SVN-Revision: 24090
2010-11-22 13:46:09 +00:00
Imre Kaloz
5ea6194ab0 remove 2.6.25 support
SVN-Revision: 24089
2010-11-22 13:43:32 +00:00
Imre Kaloz
4052849677 switch from ext2 to ext4 (w/o) journaling
SVN-Revision: 24084
2010-11-22 12:12:39 +00:00
Felix Fietkau
6117c04c94 remove linux 2.4 specific build system code
SVN-Revision: 21951
2010-06-26 20:42:38 +00:00
Nicolas Thill
c69cb2e520 image/ext2: fix rootfs partition size after [21362]
SVN-Revision: 21369
2010-05-05 06:14:32 +00:00
Nicolas Thill
23aa8be261 include: rearrange image.mk, indent, reorder, change some ifeq/ifneq tests
SVN-Revision: 21244
2010-04-29 00:44:26 +00:00
Nicolas Thill
b3b591c000 buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZ
SVN-Revision: 21238
2010-04-28 14:47:43 +00:00
Nicolas Thill
7992df3721 images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is selected or not
SVN-Revision: 21237
2010-04-28 14:27:03 +00:00
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
2010-04-13 21:36:58 +00:00
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
2010-04-13 14:07:22 +00:00
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
2010-04-12 23:15:56 +00:00
Florian Fainelli
7af8ee0481 change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
2010-03-21 17:16:50 +00:00
Nicolas Thill
a9dc020014 sort entries in images md5sums files
SVN-Revision: 20116
2010-03-10 04:03:37 +00:00
Lars-Peter Clausen
d77662c7a3 image.mk: Adjust ubifs build behaviour to that of others image types
SVN-Revision: 19985
2010-03-05 04:14:03 +00:00
Imre Kaloz
7b367d0313 with no users left, remove support for 2.6.21
SVN-Revision: 19578
2010-02-11 08:37:57 +00:00
Felix Fietkau
42e4f83096 fix rootfs preparation with rootfs containing files with whitespaces in the filename (based on patch from #6551)
SVN-Revision: 19282
2010-01-22 23:10:57 +00:00
Lars-Peter Clausen
db06ca593b Add support for building ubifs images.
SVN-Revision: 19097
2010-01-11 01:10:45 +00:00
Imre Kaloz
06d8dc9329 get rid of even more 2.6.28 stuff
SVN-Revision: 18953
2009-12-27 21:35:42 +00:00
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
2009-11-24 13:55:40 +00:00
Felix Fietkau
7f75186333 unbreak brcm-2.4
SVN-Revision: 18287
2009-11-03 15:38:04 +00:00
Imre Kaloz
5aba9ecbd3 use the new option for creating squashfs4-lzma images
SVN-Revision: 18269
2009-11-02 09:53:29 +00:00
Imre Kaloz
ed19cab256 swap logic on squashfs version selection
SVN-Revision: 18163
2009-10-26 12:06:47 +00:00
Gabor Juhos
71a3d54218 create v4 squashfs image for 2.6.31
SVN-Revision: 17406
2009-08-26 09:52:25 +00:00
Felix Fietkau
dcd0e4a672 work around a threading bug in mksquashfs4 by limiting the number of threads to 1
SVN-Revision: 17146
2009-08-06 12:55:41 +00:00
Florian Fainelli
07c4108af6 use --binary option of md5sum to improve compatibility with other platforms (#5192)
SVN-Revision: 16977
2009-07-25 17:16:00 +00:00
Felix Fietkau
12b429b3a2 get rid of linux 2.6.29
SVN-Revision: 16883
2009-07-17 16:20:25 +00:00
Felix Fietkau
1165dfed6a enable lzma for squashfs4 by default
SVN-Revision: 15962
2009-05-21 18:11:22 +00:00
Gabor Juhos
7b7a99c771 create squashfs4 images if kernel version >=2.6.29
SVN-Revision: 15866
2009-05-15 12:10:47 +00:00
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
2009-03-02 17:42:29 +00:00
Felix Fietkau
6b6c8fd100 fix potential rootfs owner/group mismatch (tgz root only, patch from #4562)
SVN-Revision: 14569
2009-02-19 17:19:29 +00:00
Nicolas Thill
9b759f26c9 genext2fs: update to 1.4.1
SVN-Revision: 14536
2009-02-17 03:05:10 +00:00
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
2008-10-07 08:01:55 +00:00
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
2008-08-16 16:59:47 +00:00
Gabor Juhos
5ee91fef1e strip kernel version from image names
SVN-Revision: 11398
2008-06-07 17:43:36 +00:00
Gabor Juhos
c8d5db0698 fix generation of cpio.gz images
SVN-Revision: 10310
2008-01-29 10:51:52 +00:00
Felix Fietkau
edbbf145d5 add cpio.gz support (patch from #2595)
SVN-Revision: 9986
2007-12-28 15:46:01 +00:00
John Crispin
9b467b5b28 remove whitespaces
SVN-Revision: 9354
2007-10-18 20:30:18 +00:00
John Crispin
215fa7eb8b added generation of x86 livecds, from #2391
SVN-Revision: 9191
2007-10-08 18:53:19 +00:00
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
2007-09-08 19:55:42 +00:00
Felix Fietkau
c6bc77ea36 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
SVN-Revision: 8362
2007-08-07 00:04:25 +00:00
Felix Fietkau
d6666fdd40 fix image installation
SVN-Revision: 8324
2007-08-03 01:21:41 +00:00
Nicolas Thill
24cabede56 remove the @ and change the comment from [8107] (closes: #2122)
SVN-Revision: 8166
2007-07-26 06:43:29 +00:00
Nicolas Thill
f2a32fff7d fix jffs2 images
SVN-Revision: 8107
2007-07-22 18:29:59 +00:00
Felix Fietkau
793b09b854 really fix tgz images
SVN-Revision: 8065
2007-07-19 18:20:56 +00:00
Florian Fainelli
f59b6f6089 Fix the tgz image build
SVN-Revision: 8042
2007-07-18 14:40:57 +00:00
Felix Fietkau
e8918b0f66 better support for handling various jffs2 eraseblock sizes
SVN-Revision: 8011
2007-07-16 22:06:45 +00:00
Felix Fietkau
d3dea9d2c6 add portability fixes from #1720
SVN-Revision: 7791
2007-06-30 12:21:58 +00:00
Imre Kaloz
72823077cd add support for jffs2 filesystems with 256k blocksize, fix taishan support
SVN-Revision: 7506
2007-06-05 20:55:21 +00:00
Florian Fainelli
22a6072cd4 Call the Initramfs template if existing
SVN-Revision: 7394
2007-05-30 10:29:50 +00:00
Felix Fietkau
874f03ea00 fixes for a few build errors on osx without fink
SVN-Revision: 7065
2007-04-29 01:30:48 +00:00
Felix Fietkau
3e91dd1bd5 revert find | xargs => find | exec changes - this is completely unnecessary and introduces additional dependencies that we do not need
SVN-Revision: 6942
2007-04-12 19:18:38 +00:00
Florian Fainelli
6cd84c6838 Use find -exec instead of xargs
SVN-Revision: 6837
2007-04-02 16:09:15 +00:00
Felix Fietkau
91e5dba2c7 kernel build cleanup
SVN-Revision: 6464
2007-03-02 17:24:20 +00:00
Felix Fietkau
68ca8e7818 make squashfs overlay support more generic and integrate it for x86-2.6
SVN-Revision: 6450
2007-03-02 01:23:36 +00:00
Tim Yardley
fdea0fabd2 make maxinodes configureable for ext2
SVN-Revision: 6345
2007-02-22 22:35:08 +00:00
Felix Fietkau
7a6a646497 Add initial version of the new Image Builder It's still a bit rough in a few places, but it seems to work for Broadcom at least - other targets untested.
SVN-Revision: 6071
2007-01-10 21:52:28 +00:00
Nicolas Thill
ab2bdf2505 only squash owners, not permissions, when generating ext2 images
SVN-Revision: 5934
2006-12-30 14:44:27 +00:00
Felix Fietkau
65ce91ec41 minor cleanup
SVN-Revision: 5718
2006-12-08 04:06:29 +00:00
Felix Fietkau
aef03f09b5 add prereq checks for target/linux/* and target/image/*, check for fdisk for the x86 builds
SVN-Revision: 5569
2006-11-18 21:12:18 +00:00
Felix Fietkau
71c4f89f29 add missing include
SVN-Revision: 5499
2006-11-12 01:18:54 +00:00
Felix Fietkau
d26446397f fix typo
SVN-Revision: 5242
2006-10-19 21:04:14 +00:00