OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
774 B

17 years ago
  1. configscript=""
  2. makeinstopt=
  3. hook_add premake 5 massage
  4. var_append makeopt ' ' 'HOSTSTRIP=echo BIN_FILES="bmp_logo gen_eth_addr img2srec mkimage" tools'
  5. #var_append makeopt ' ' 'HOSTSTRIP=echo -C tools/easylogo'
  6. hook_add postmake 5 install_uboot
  7. massage() {
  8. touch include/config.mk
  9. sed -i -e 's:linux/string.h:string.h:' lib_generic/sha1.c
  10. sed -i -e 's:asm/string.h:string.h:' include/linux/string.h
  11. sed -i -e 's:linux/mtd/mtd.h:mtd/mtd-user.h:' tools/env/fw_env.c
  12. sed -i \
  13. -e '1i#include <string.h>' \
  14. -e '1i#include <stdlib.h>' \
  15. tools/easylogo/easylogo.c
  16. }
  17. install_uboot(){
  18. make HOSTSTRIP=echo -C tools/easylogo
  19. for x in tools/{bmp_logo,gen_eth_addr,img2srec,mkimage}
  20. do
  21. cp -avf $x $root/$bindir
  22. done
  23. cp -avf tools/easylogo/easylogo $root/$bindir
  24. }