X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fimage%2FMakefile;fp=target%2Flinux%2Fath79%2Fimage%2FMakefile;h=34dd81961032203dfd4bbca5ba14a3082b80fece;hb=c57e182b560e4c93377270d470600095c2b580fe;hp=cd136b23b9ba0365dcf6a0185bdb2997ccad77a5;hpb=108a6f6792bc50fa5b1627c207ae71ba555b55f8;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index cd136b23b9..34dd819610 100644 --- a/target/linux/ath79/image/Makefile +++ b/target/linux/ath79/image/Makefile @@ -29,8 +29,9 @@ define Build/loader-okli-compile $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0) endef +# Arguments: define Build/loader-okli - dd if=$(KDIR)/loader-$(1).gz bs=7680 conv=sync of="$@.new" + dd if=$(KDIR)/loader-$(word 1,$(1)).$(LOADER_TYPE) bs=$(word 2,$(1)) conv=sync of="$@.new" cat "$@" >> "$@.new" mv "$@.new" "$@" endef