Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= bcm2835-bootloader
  5. PKG_VERSION:= 393dcc0e76f18f6ac1b67ba45d36058410670034
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 44723adf99a06e6a21df7e9ee20ff29c6235323e38e1d055ea087d29a7597c81
  8. PKG_DESCR:= bootloader for raspberry pi
  9. PKG_SECTION:= base/boot
  10. PKG_URL:= https://github.com/raspberrypi/firmware
  11. PKG_SITES:= https://github.com/raspberrypi/firmware.git
  12. PKG_SYSTEM_DEPENDS:= raspberry-pi
  13. PKG_CHOICES_BCM2835_BOOTLOADER:= DEFAULT EXTRA CUTDOWN
  14. PKGCD_DEFAULT:= default bootloader
  15. PKGCD_EXTRA:= bootloader with extra features and codecs
  16. PKGCD_CUTDOWN:= cut down bootloader
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,BCM2835_BOOTLOADER,bcm2835-bootloader,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  19. CONFIG_STYLE:= manual
  20. BUILD_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. do-install:
  23. $(INSTALL_DIR) $(IDIR_BCM2835_BOOTLOADER)/boot
  24. $(CP) $(WRKBUILD)/boot/bootcode.bin $(IDIR_BCM2835_BOOTLOADER)/boot/
  25. ifeq ($(ADK_PACKAGE_BCM2835_BOOTLOADER_DEFAULT),y)
  26. $(CP) $(WRKBUILD)/boot/{start.elf,fixup.dat} $(IDIR_BCM2835_BOOTLOADER)/boot/
  27. endif
  28. ifeq ($(ADK_PACKAGE_BCM2835_BOOTLOADER_EXTRA),y)
  29. $(CP) $(WRKBUILD)/boot/{start_x.elf,fixup_x.dat} $(IDIR_BCM2835_BOOTLOADER)/boot/
  30. printf "start_x=1\n" >> $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
  31. endif
  32. ifeq ($(ADK_PACKAGE_BCM2835_BOOTLOADER_CUTDOWN),y)
  33. $(CP) $(WRKBUILD)/boot/{start_cd.elf,fixup_cd.dat} $(IDIR_BCM2835_BOOTLOADER)/boot/
  34. printf "start_cd=1\n" >> $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
  35. endif
  36. printf "gpu_mem=$(ADK_TARGET_GPU_MEM)\n" >> \
  37. $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
  38. include $(ADK_TOPDIR)/mk/pkg-bottom.mk