aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/common-yuncore.mk
blob: a71d930d80aec9033e522056ffa1c22cd11a6b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define Build/yuncore-tftp-header-16m
	( \
		echo -n -e \
			"YUNCOREsetenv bootcmd \"bootm 0x9f050000 || bootm 0x9fe80000\"" \
			"&& saveenv" \
			"&& erase 0x9f050000 +0xfa0000" \
			"&& cp.b 0x800600c0 0x9f050000 0xfa0000" |\
		dd bs=192 count=1 conv=sync; \
		dd if=$@; \
	) > $@.new
	mv $@.new $@
endef