openwrt/include
Hannu Nyman dcfe2a461e include/image-commands.mk: shorter version in Netgear factory header
Shorten the version string in Netgear factory image header in order
to enable u-boot TFTP recovery flash mode to work again.

Strip 'r7210-14cb05909a' into 'r7210' in the Netgear image header
by removing the hash (anything after "-").

background:
Some Netgear routers have recently been unable to flash Openwrt
factory image with the TFTP recovery flash mode provided by Netgear
u-boot. That is due to over-long Openwrt version string overflowing
into the router type string in u-boot code. Modern git versions
produce 10-digit short hashes for the Openwrt main repo, and that
causes the version string to be too long in the image header,
breaking the image ID verification by the TFTP flash routine.

(Other option could be to force a shorter hash in scripts/getver.sh,
but as the problem only concerns Netgear routers, let's patch just
them.)

More detailed explanations in FS#1583

Tested with WNDR3800

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-06-18 20:29:37 +02:00
..
site include/site: add powerpc64 config 2017-10-24 13:24:04 +02:00
autotools.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk downloads.mk: introduce name-agnostic PROJECT_GIT variable 2018-01-10 21:27:31 +01:00
feeds.mk imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
hardening.mk build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
host-build.mk build: pass HOSTCXX to host builds as CXX 2018-04-20 13:20:25 +02:00
image-commands.mk include/image-commands.mk: shorter version in Netgear factory header 2018-06-18 20:29:37 +02:00
image-legacy.mk image: fix ar71xx legacy images 2017-07-15 07:02:59 +02:00
image.mk build: Allow to change the FIT config section name 2018-03-17 08:09:04 +01:00
kernel-build.mk Config-devel.in: rename symbol KERNEL_GIT_BRANCH -> KERNEL_GIT_REF 2018-01-27 16:46:45 +01:00
kernel-defaults.mk config: don't define the same symbol twice 2018-01-17 11:07:17 +01:00
kernel-version.mk kernel: bump 4.14 to 4.14.50 2018-06-18 15:25:42 +02:00
kernel.mk include/kernel.mk: build kmod packages with empty FILES 2018-04-12 05:47:10 +02:00
netfilter.mk iptables: split physdev match out as a separate package 2018-04-09 19:41:48 +02:00
nls.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
package-bin.mk
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 2018-03-07 09:59:08 +01:00
package-dumpinfo.mk include/package-dumpinfo.mk: don't duplicate source package information for every binary package 2018-01-13 19:54:45 +01:00
package-ipkg.mk build: allow defining license information per binary package 2017-11-25 20:02:04 +01:00
package-seccomp.mk
package.mk build: prevent spurious package rebuilds under CONFIG_AUTOREMOVE 2018-05-22 09:27:38 +02:00
prereq-build.mk build: log time taken by each packages/steps 2018-05-07 10:31:35 +02:00
prereq.mk include: extend SetupHostCommand macro to accept more arguments 2018-04-05 13:58:15 +02:00
quilt.mk kernel: split patches folder up into backport, pending and hack folders 2017-08-05 08:46:36 +02:00
rootfs.mk imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00
scan.awk
scan.mk build: get rid of host.mk 2017-02-26 13:31:44 +01:00
scons.mk
shell.sh
subdir.mk build: log time taken by each packages/steps 2018-05-07 10:31:35 +02:00
target.mk mvebu: add support for MACCHIATObin (cortex-a72) 2018-03-31 16:13:19 +02:00
toolchain-build.mk build: stop overriding STAGING_DIR_HOST for toolchain build 2017-05-25 19:01:07 +02:00
toplevel.mk include/toplevel.mk: Add xconfig target 2017-11-02 15:58:45 +01:00
u-boot.mk u-boot.mk: add HOST_LDFLAGS to UBOOT_MAKE_FLAGS 2018-02-10 20:52:31 +01:00
uclibc++.mk
unpack.mk
verbose.mk
version.mk treewide: combine VERSION_SED and VERSION_SED_SCRIPT 2018-02-02 13:59:34 +01:00