0019-Makefile-add-Lantiq-NAND-SPL-images.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 2e01dc015bc8bb9ca45f369025c342ede990863e Mon Sep 17 00:00:00 2001
  2. From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
  3. Date: Mon, 12 Aug 2013 01:16:09 +0200
  4. Subject: Makefile: add Lantiq NAND SPL images
  5. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
  6. --- a/.gitignore
  7. +++ b/.gitignore
  8. @@ -54,6 +54,9 @@
  9. /u-boot.ltq.lzma.norspl
  10. /u-boot.ltq.lzo.norspl
  11. /u-boot.ltq.norspl
  12. +/u-boot.ltq.lzma.nandspl
  13. +/u-boot.ltq.lzo.nandspl
  14. +/u-boot.ltq.nandspl
  15. /u-boot.lzma.img
  16. /u-boot.lzo.img
  17. --- a/Makefile
  18. +++ b/Makefile
  19. @@ -599,6 +599,24 @@ $(obj)u-boot.ltq.lzma.sfspl: $(obj)u-boo
  20. $(obj)tools/ltq-boot-image -t sfspl -e $(CONFIG_SPL_TEXT_BASE) \
  21. -s $(obj)spl/u-boot-spl.bin -u $< -o $@
  22. +$(obj)u-boot.ltq.nandspl: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
  23. + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
  24. + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
  25. + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
  26. + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
  27. +
  28. +$(obj)u-boot.ltq.lzo.nandspl: $(obj)u-boot.lzo.img $(obj)spl/u-boot-spl.bin
  29. + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
  30. + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
  31. + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
  32. + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
  33. +
  34. +$(obj)u-boot.ltq.lzma.nandspl: $(obj)u-boot.lzma.img $(obj)spl/u-boot-spl.bin
  35. + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
  36. + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
  37. + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
  38. + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
  39. +
  40. $(obj)u-boot.ltq.norspl: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
  41. cat $(obj)spl/u-boot-spl.bin $< > $@