common-yuncore.mk 308 B

123456789101112
  1. define Build/yuncore-tftp-header-16m
  2. ( \
  3. echo -n -e \
  4. "YUNCOREsetenv bootcmd \"bootm 0x9f050000 || bootm 0x9fe80000\"" \
  5. "&& saveenv" \
  6. "&& erase 0x9f050000 +0xfa0000" \
  7. "&& cp.b 0x800600c0 0x9f050000 0xfa0000" |\
  8. dd bs=192 count=1 conv=sync; \
  9. dd if=$@; \
  10. ) > [email protected]
  11. mv [email protected] $@
  12. endef