kumquat-buildroot/package/genimage/genimage.mk

15 lines
502 B
Makefile
Raw Normal View History

################################################################################
#
# genimage
#
################################################################################
package/genimage: bump to version 15 This includes the following changes: aa76b22 release version 15 dd49fec util: Fix warn_unused_result build warnings 6ba2b4d image-hd: more error output when bootloaders overlap with the partition table 90b83ba allow specifying 'holes' in the partition section 09fde2e [ci skip] typo "used used fill" -> "used to fill" b0d794c image-flash: don't ignore truncate errors except ENOENT 93d1f26 .github: replace ubuntu-16.04 with ubuntu-18.04 1e9b9be util: systemp(): don't use shell defined in SHELL, but GENIMAGE_SHELL 1c53012 util: systemp(): use shell defined in SHELL rather than /bin/sh 89490b9 image-android-sparse: use off_t instead of int for lseek return values f1cab39 test: add tests for --includepath 9e7f23a README.rst: reflow paragraph 0778817 add --includepath option e210857 config.c: remove redundant helper add_opt() 18b3cfd config.c: allow hiding specific command line options from --help 65548f6 config.c: remove unused member cmdlineopt f606a33 util: remove unused pad_file function 62e1d4f image-flash: use insert_image instead of pad_file 8c0fe58 image-ext2: use insert_image instead of pad_file 7d0003b util: insert_image: allow specifying the fill value b847f3e image-hd: resize the image to the final size at the begining 8e3bf8b test: hdimage: check the disk usage of the second image as well e2bd4c3 test: handle new genext2fs and e2fsprogs versions 06ac16e insert_image: fix read/write loop 17e2c3c test: filter 'rauc info' output for newer distros 1d72d80 image-hd: stricter option handling d912549 image-hd.c: make GPT backup handling a little less special 69f6644 add test for partitions out of order 9190a2b image-hd.c: correct computation of first_usable_lba 8505aed image-hd.c: switch to insert_image() instead of pad_file() 5cc31c6 image-hd.c: truncate output file before looping over partitions 2194e31 image-hd.c: replace use of pad_file() with extend_file() 5638a9e util.c: add insert_image() helper 8eef854 test: add tests for "bootloader with holes allowing some overlap" a72ca69 image-hd.c: take image holes into consideration when checking for overlap 564e359 document "file" image type and "hole" syntax in particular 998a118 image-file.c: allow specifying "don't care" regions 7f8f19d image-hd.c: fix missing check for overlap with GPT table e91c8e2 image-hd.c: check all partitions for overlap 44d5346 image-hd.c: allow partitions to appear out-of-order cd3ceac image-hd.c: ensure an autoresize partition has a size consistent with its alignment 0a61f64 README.rst: add description of how default align/size/offset are computed efaae46 test: fix copy/paste error in the test refactoring 086380a config: don't try to access non-existent section fe74ea1 image-vfat: drop '-b' from mcopy 7ef351d test: factor out some test data generation 94af174 image-hd.c: fix extended partition with offset 649602b image-hd.c: prepare for fake partitions cc13e78 image-hd.c: don't sanity check partition_type_uuid for !part->in_partition_table 5f53df3 image-hd.c: move overlap check below partition size determination b77f38b image-hd.c: allow specifying minimum size for auto-resize partitions 5f07c1c image-hd.c: do not require the autoresize partition to be specified last 8269fa7 image-hd.c: enforce proper alignment of all partitions 5bd7283 image-hd.c: ignore in-partition-table when the image has no partition table 3e2b616 image-hd.c: always sanity check child->size v part->size fa619fb image-hd.c: separate computation of part->offset from the sanity checks 030e7a3 allow each partition to have its own align value cf192fd image-hd.c: fix computation of autoresize size d6c477c image-hd.c: don't lazily initialize now 6cbbf86 README.rst: document default value of in-partition-table option e43e02e test: add some tests for overlap of GPT 11f3528 image-hd.c: refactor updating chs values 8c74183 image-hd.c: add and use "struct mbr_tail" 9ffd5e0 add macro for compile-time assertions 9e59a27 change insert_data() to take const void* instead of const char* bcd7fa6 util: strtoul_suffix: allow s suffix for sector size (512 bytes) 41d77c4 image-hd.c: fix copy-pasto access of random memory 5dc2e22 list.h: drop prefetch() be29822 image-rauc: add intermediate option 344416f util: add save string concat with formated string 351d50e image-rauc: ensure clean-up on rauc_generate() exit 5cba95c image-rauc: free keyringargs after use 23adab0 image-ext: ensure size is always interpreted as kilobytes 8014c7e .github: run apt-get update to update package cache Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-11-28 14:18:42 +01:00
GENIMAGE_VERSION = 15
.mk files: bulk aligment and whitespace cleanup of assignments The Buildroot coding style defines one space around make assignments and does not align the assignment symbols. This patch does a bulk fix of offending packages. The package infrastructures (or more in general assignments to calculated variable names, like $(2)_FOO) are not touched. Alignment of line continuation characters (\) is kept as-is. The sed command used to do this replacement is: find * -name "*.mk" | xargs sed -i \ -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#' Brief explanation of this command: ^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line \([?:+]\?=\) any assignment character =, :=, ?=, += \([^\\]\+\) any string not containing a line continuation \([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a line continuation character \(\s*\\\) optional whitespace, followed by a line continuation character Hence, the first subexpression handles empty assignments, the second handles regular assignments, the third handles regular assignments with line continuation, and the fourth empty assignments with line continuation. This expression was tested on following test text: (initial tab not included) FOO = spaces before FOO = spaces before and after FOO = tab before FOO = tab and spaces before FOO = tab after FOO = tab and spaces after FOO = spaces and tab after FOO = \ FOO = bar \ FOO = bar space \ FOO = \ GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse FOO += spaces before FOO ?= spaces before and after FOO := FOO = FOO = FOO = FOO = $(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C AT91BOOTSTRAP3_DEFCONFIG = \ AXEL_DISABLE_I18N=--i18n=0 After this bulk change, following manual fixups were done: - fix line continuation alignment in cegui06 and spice (the sed expression leaves the number of whitespace between the value and line continuation character intact, but the whitespace before that could have changed, causing misalignment. - qt5base was reverted, as this package uses extensive alignment which actually makes the code more readable. Finally, the end result was manually reviewed. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Cc: Yann E. Morin <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-07 09:06:03 +02:00
GENIMAGE_SOURCE = genimage-$(GENIMAGE_VERSION).tar.xz
GENIMAGE_SITE = https://github.com/pengutronix/genimage/releases/download/v$(GENIMAGE_VERSION)
HOST_GENIMAGE_DEPENDENCIES = host-pkgconf host-libconfuse
GENIMAGE_LICENSE = GPL-2.0
GENIMAGE_LICENSE_FILES = COPYING
$(eval $(host-autotools-package))