summaryrefslogtreecommitdiff
path: root/package/bcm2835-bootloader/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-08 20:09:58 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-09 19:09:47 +0100
commitfbddcd227c26995d2933517b9dbb2d7dd3d5c9b6 (patch)
tree5ebc2dd46911e16b49dea7a569deb7879813fc40 /package/bcm2835-bootloader/Makefile
parent2456b5f30e399a30e9064dd7c42154386cff19c4 (diff)
add basic support for raspberry pi2
Introduce new board symbols for embedded systems, which use the similar board as basis. As for example raspberry pi and raspberry pi2. And some more updates: Update binutils to 2.25, set gcc 4.9.2 as default. Update glibc to 2.21, set as default. Update gdb to 7.8.2. Update kodi to latest release.
Diffstat (limited to 'package/bcm2835-bootloader/Makefile')
-rw-r--r--package/bcm2835-bootloader/Makefile36
1 files changed, 32 insertions, 4 deletions
diff --git a/package/bcm2835-bootloader/Makefile b/package/bcm2835-bootloader/Makefile
index 168c00e3c..2fbf19d16 100644
--- a/package/bcm2835-bootloader/Makefile
+++ b/package/bcm2835-bootloader/Makefile
@@ -4,14 +4,14 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= bcm2835-bootloader
-PKG_VERSION:= 9b068fe44503f564579a25fd849df4ec784f9d4d
-PKG_RELEASE:= 3
-PKG_DESCR:= bootloader for raspberry pi
+PKG_VERSION:= a43480416153e88e8499ae85e4a760dcaa4a5810
+PKG_RELEASE:= 1
+PKG_DESCR:= bootloader for bcm28xx
PKG_SECTION:= base/boot
PKG_URL:= https://github.com/raspberrypi/firmware
PKG_SITES:= https://github.com/raspberrypi/firmware.git
-PKG_SYSTEM_DEPENDS:= raspberry-pi
+PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2
PKG_CHOICES_BCM2835_BOOTLOADER:= DEFAULT EXTRA CUTDOWN
PKGCD_DEFAULT:= default bootloader
@@ -52,15 +52,43 @@ ifeq ($(ADK_PACKAGE_BCM2835_BOOTLOADER_CUTDOWN),y)
endif
printf "gpu_mem=$(ADK_TARGET_GPU_MEM)\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+ifeq ($(ADK_KERNEL_BCM2709_DT),y)
+ printf "device_tree=bcm2709-rpi-2-b.dtb\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
ifeq ($(ADK_KERNEL_BCM2708_DT),y)
printf "device_tree=bcm2708-rpi-b.dtb\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
+ifneq ($(ADK_KERNEL_BCM2708_DT)$(ADK_KERNEL_BCM2709_DT),)
printf "device_tree_address=0x100\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
printf "kernel_address=0x8000\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
printf "disable_commandline_tags=2\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+ printf "dtparam=i2s=on,spi=on,i2c_arm=on,i2c_vc=on\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_HIFIBERRY_AMP),)
+ printf "dtoverlay=hifiberry-amp\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
+ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_HIFIBERRY_DAC),)
+ printf "dtoverlay=hifiberry-dac\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
+ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_HIFIBERRY_DIGI),)
+ printf "dtoverlay=hifiberry-digi\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
+ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_RPI_DAC),)
+ printf "dtoverlay=rpi-dac\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
+ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_IQAUDIO_DAC),)
+ printf "dtoverlay=iqaudio-dac\n" >> \
+ $(IDIR_BCM2835_BOOTLOADER)/boot/config.txt
+endif
ifneq ($(ADK_KERNEL_SND_BCM2708_SOC_RPI_PROTO),)
printf "dtoverlay=rpi-proto\n" >> \
$(IDIR_BCM2835_BOOTLOADER)/boot/config.txt