endef
define Build/Compile
+ true
+endef
+
+define Package/brcm2708-gpu-fw/install
+ true
endef
define Build/InstallDev
- $(INSTALL_DIR) $(BUILD_DIR)/brcm2708-gpu-fw-boot
- $(CP) $(PKG_BUILD_DIR)/* $(BUILD_DIR)/brcm2708-gpu-fw-boot
+ $(CP) $(PKG_BUILD_DIR)/bootcode.bin $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/COPYING.linux $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/LICENCE.broadcom $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/start.elf $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/start_cd.elf $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
endef
$(eval $(call BuildPackage,brcm2708-gpu-fw))
define Image/Build/RaspberryPi
rm -f $(KDIR)/boot.img
- mkdosfs -C $(KDIR)/boot.img $(FAT32_BLOCKS)
+ mkfs.fat -C $(KDIR)/boot.img $(FAT32_BLOCKS)
# Raspberry Pi has no bootloader, instead the GPU loads and starts the kernel
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/bootcode.bin ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/COPYING.linux ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/LICENCE.broadcom ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/start.elf ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/start_cd.elf ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/fixup.dat ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/fixup_cd.dat ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/bootcode.bin ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/COPYING.linux ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/LICENCE.broadcom ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/start.elf ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/start_cd.elf ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/fixup.dat ::
+ mcopy -i $(KDIR)/boot.img $(KDIR)/fixup_cd.dat ::
mcopy -i $(KDIR)/boot.img cmdline.txt ::
mcopy -i $(KDIR)/boot.img config.txt ::
mcopy -i $(KDIR)/boot.img $(KDIR)/Image ::kernel.img # Copy OpenWrt built kernel