Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
34
target/linux/ath79/image/common-buffalo.mk
Normal file
34
target/linux/ath79/image/common-buffalo.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
DEVICE_VARS += BUFFALO_PRODUCT BUFFALO_HWVER
|
||||
|
||||
define Build/buffalo-tag
|
||||
$(eval product=$(word 1,$(1)))
|
||||
$(eval hwver=$(word 2,$(1)))
|
||||
$(STAGING_DIR_HOST)/bin/buffalo-tag \
|
||||
-c 0x80041000 -d 0x801e8000 -w $(hwver) \
|
||||
-a ath -v 1.99 -m 1.01 -f 1 \
|
||||
-b $(product) -p $(product) \
|
||||
-r M_ -l mlang8 \
|
||||
-i $@ -o $@.new
|
||||
mv $@.new $@
|
||||
endef
|
||||
|
||||
define Build/buffalo-tftp-header
|
||||
( \
|
||||
echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \
|
||||
dd if=$@; \
|
||||
) > $@.new
|
||||
mv $@.new $@
|
||||
endef
|
||||
|
||||
|
||||
define Device/buffalo_common
|
||||
DEVICE_VENDOR := Buffalo
|
||||
BUFFALO_PRODUCT :=
|
||||
BUFFALO_HWVER := 3
|
||||
IMAGES += factory.bin tftp.bin
|
||||
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
|
||||
pad-rootfs | check-size
|
||||
IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc $$$$(BUFFALO_PRODUCT) 1.99 | \
|
||||
buffalo-tag $$$$(BUFFALO_PRODUCT) $$$$(BUFFALO_HWVER)
|
||||
IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
|
||||
endef
|
||||
Reference in New Issue
Block a user