summaryrefslogtreecommitdiff
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
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.
-rw-r--r--Config.in1
-rw-r--r--mk/kernel-ver.mk6
-rw-r--r--mk/pkg-bottom.mk2
-rw-r--r--package/bcm2835-bootloader/Makefile36
-rw-r--r--package/bcm2835-vc/Makefile2
-rw-r--r--package/gcj/Makefile2
-rw-r--r--package/kodi/Makefile25
-rw-r--r--package/libcec/Makefile9
-rw-r--r--package/libxml2/Makefile2
-rw-r--r--package/omxplayer/Makefile2
-rw-r--r--package/sqlite/Makefile2
-rw-r--r--package/u-boot/Makefile5
-rw-r--r--package/wiringPi/Makefile2
-rw-r--r--rules.mk1
-rw-r--r--target/appliances/kodi2
-rw-r--r--target/appliances/mpd6
-rw-r--r--target/arm/bcm28xx/patches/3.10.53/raspberry-pi.patch (renamed from target/arm/raspberry-pi/patches/3.10.53/raspberry-pi.patch)0
-rw-r--r--target/arm/bcm28xx/patches/3.12.37/0000-raspberry-pi.patch (renamed from target/arm/raspberry-pi/patches/3.12.37/0000-raspberry-pi.patch)0
-rw-r--r--target/arm/bcm28xx/patches/3.14.28/raspberry-pi.patch (renamed from target/arm/raspberry-pi/patches/3.14.28/raspberry-pi.patch)0
-rw-r--r--target/arm/bcm28xx/patches/3.18.6/0000-raspberry-pi.patch125068
-rw-r--r--target/arm/bcm28xx/patches/3.18.6/0001-add-support-for-rpi-proto-hardware.patch (renamed from target/arm/raspberry-pi/patches/3.18.5/0001-add-support-for-rpi-proto-hardware.patch)94
-rw-r--r--target/arm/bcm28xx/patches/3.18.6/0002-allow-to-control-volume-for-each-channel.patch (renamed from target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch)0
-rw-r--r--target/arm/kernel/raspberry-pi212
-rw-r--r--target/arm/raspberry-pi/patches/3.18.5/0000-raspberry-pi.patch287476
-rw-r--r--target/arm/systems/raspberry-pi1
-rw-r--r--target/arm/systems/raspberry-pi225
-rw-r--r--target/collections/console33
-rw-r--r--target/collections/development45
-rw-r--r--target/collections/kodibox33
-rw-r--r--target/collections/mpd59
-rw-r--r--target/collections/mpdbox21
-rw-r--r--target/collections/test12
-rw-r--r--target/collections/xorg27
-rw-r--r--target/collections/ympd9
-rw-r--r--target/config/Config.in.abi.choice2
-rw-r--r--target/config/Config.in.boards13
-rw-r--r--target/config/Config.in.cpu3
-rw-r--r--target/config/Config.in.endian.choice1
-rw-r--r--target/config/Config.in.kernel13
-rw-r--r--target/config/Config.in.kernelversion.choice6
-rw-r--r--target/config/Config.in.kernelversion.default2
-rw-r--r--target/config/Config.in.libc.choice8
-rw-r--r--target/config/Config.in.libc.default11
-rw-r--r--target/config/Config.in.target6
-rw-r--r--target/config/Config.in.toolchain19
-rw-r--r--target/linux/config/Config.in.audio25
-rw-r--r--target/linux/config/Config.in.block14
-rw-r--r--target/linux/config/Config.in.cpu46
-rw-r--r--target/linux/config/Config.in.dma14
-rw-r--r--target/linux/config/Config.in.ethernet4
-rw-r--r--target/linux/config/Config.in.fs2
-rw-r--r--target/linux/config/Config.in.gpio16
-rw-r--r--target/linux/config/Config.in.graphics8
-rw-r--r--target/linux/config/Config.in.i2c19
-rw-r--r--target/linux/config/Config.in.input4
-rw-r--r--target/linux/config/Config.in.kernel8
-rw-r--r--target/linux/config/Config.in.misc1
-rw-r--r--target/linux/config/Config.in.spi6
-rw-r--r--target/linux/config/Config.in.usb14
-rw-r--r--target/linux/config/Config.in.watchdog14
-rw-r--r--target/linux/patches/3.18.6/bsd-compatibility.patch (renamed from target/linux/patches/3.18.5/bsd-compatibility.patch)0
-rw-r--r--target/linux/patches/3.18.6/cleankernel.patch (renamed from target/linux/patches/3.18.5/cleankernel.patch)0
-rw-r--r--target/linux/patches/3.18.6/cris-header.patch (renamed from target/linux/patches/3.18.5/cris-header.patch)0
-rw-r--r--target/linux/patches/3.18.6/defaults.patch (renamed from target/linux/patches/3.18.5/defaults.patch)0
-rw-r--r--target/linux/patches/3.18.6/export-symbol-for-exmap.patch (renamed from target/linux/patches/3.18.5/export-symbol-for-exmap.patch)0
-rw-r--r--target/linux/patches/3.18.6/gemalto.patch (renamed from target/linux/patches/3.18.5/gemalto.patch)0
-rw-r--r--target/linux/patches/3.18.6/initramfs-nosizelimit.patch (renamed from target/linux/patches/3.18.5/initramfs-nosizelimit.patch)0
-rw-r--r--target/linux/patches/3.18.6/lemote-rfkill.patch (renamed from target/linux/patches/3.18.5/lemote-rfkill.patch)0
-rw-r--r--target/linux/patches/3.18.6/microblaze-axi.patch (renamed from target/linux/patches/3.18.5/microblaze-axi.patch)0
-rw-r--r--target/linux/patches/3.18.6/microblaze-ethernet.patch (renamed from target/linux/patches/3.18.5/microblaze-ethernet.patch)0
-rw-r--r--target/linux/patches/3.18.6/mkpiggy.patch (renamed from target/linux/patches/3.18.5/mkpiggy.patch)0
-rw-r--r--target/linux/patches/3.18.6/mtd-rootfs.patch (renamed from target/linux/patches/3.18.5/mtd-rootfs.patch)0
-rw-r--r--target/linux/patches/3.18.6/nfsv3-tcp.patch (renamed from target/linux/patches/3.18.5/nfsv3-tcp.patch)0
-rw-r--r--target/linux/patches/3.18.6/non-static.patch (renamed from target/linux/patches/3.18.5/non-static.patch)0
-rw-r--r--target/linux/patches/3.18.6/patch-fblogo (renamed from target/linux/patches/3.18.5/patch-fblogo)0
-rw-r--r--target/linux/patches/3.18.6/patch-yaffs2 (renamed from target/linux/patches/3.18.5/patch-yaffs2)0
-rw-r--r--target/linux/patches/3.18.6/ppc64-missing-zlib.patch (renamed from target/linux/patches/3.18.5/ppc64-missing-zlib.patch)0
-rw-r--r--target/linux/patches/3.18.6/regmap-bool.patch (renamed from target/linux/patches/3.18.5/regmap-bool.patch)0
-rw-r--r--target/linux/patches/3.18.6/relocs.patch (renamed from target/linux/patches/3.18.5/relocs.patch)0
-rw-r--r--target/linux/patches/3.18.6/sgidefs.patch (renamed from target/linux/patches/3.18.5/sgidefs.patch)0
-rw-r--r--target/linux/patches/3.18.6/sortext.patch (renamed from target/linux/patches/3.18.5/sortext.patch)0
-rw-r--r--target/linux/patches/3.18.6/startup.patch (renamed from target/linux/patches/3.18.5/startup.patch)0
-rw-r--r--target/linux/patches/3.18.6/wlan-cf.patch (renamed from target/linux/patches/3.18.5/wlan-cf.patch)0
-rw-r--r--target/linux/patches/3.18.6/xargs.patch (renamed from target/linux/patches/3.18.5/xargs.patch)0
-rw-r--r--target/m68k/qemu-m68k/patches/3.18.6/m68k-coldfire-fec.patch (renamed from target/m68k/qemu-m68k/patches/3.18.5/m68k-coldfire-fec.patch)0
-rw-r--r--target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch (renamed from target/m68k/qemu-m68k/patches/3.18.5/qemu-coldfire.patch)0
-rw-r--r--target/mips64/lemote-yeelong/patches/3.18.6/sm7xx-fb.patch (renamed from target/mips64/lemote-yeelong/patches/3.18.5/sm7xx-fb.patch)0
-rw-r--r--toolchain/binutils/Makefile.inc7
-rw-r--r--toolchain/elf2flt/Makefile3
-rw-r--r--toolchain/gcc/Makefile4
-rw-r--r--toolchain/gdb/Makefile.inc4
-rw-r--r--toolchain/glibc/Makefile2
-rw-r--r--toolchain/glibc/Makefile.inc12
-rw-r--r--toolchain/glibc/patches/2.19/glibc-cross.patch86
-rw-r--r--toolchain/glibc/patches/2.19/i686_define_bug.patch23
-rw-r--r--toolchain/glibc/patches/2.19/sparc-darwin.patch12
-rw-r--r--toolchain/kernel-headers/Makefile2
97 files changed, 125391 insertions, 288063 deletions
diff --git a/Config.in b/Config.in
index 8e36745cb..7a7af0604 100644
--- a/Config.in
+++ b/Config.in
@@ -20,6 +20,7 @@ menu "Target configuration"
source "target/config/Config.in.cpu"
source "target/config/Config.in.hardware"
+source "target/config/Config.in.boards"
source "target/config/Config.in.kernel"
source "target/config/Config.in.arch"
source "target/config/Config.in.system"
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index ba3fcf7ef..caf467bf5 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -1,8 +1,8 @@
-ifeq ($(ADK_KERNEL_VERSION_3_18_5),y)
-KERNEL_VERSION:= 3.18.5
+ifeq ($(ADK_KERNEL_VERSION_3_18_6),y)
+KERNEL_VERSION:= 3.18.6
KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
KERNEL_RELEASE:= 1
-KERNEL_HASH:= e4442436e59c74169e98d38d2e2a434c7b73f8eda0aa8f20e454eaf52270fc90
+KERNEL_HASH:= c4c1a4841173aa572d79b7530db92ce493dbefe8049e6f461a46dd897df253f5
endif
ifeq ($(ADK_KERNEL_VERSION_3_14_28),y)
KERNEL_VERSION:= 3.14.28
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index 2c9b5c6ed..97fdb162d 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -138,7 +138,7 @@ ${_BUILD_COOKIE}: ${_CONFIGURE_COOKIE}
@env ${MAKE_ENV} ${MAKE} pre-build $(MAKE_TRACE)
@$(CMD_TRACE) "compiling... "
ifneq ($(filter manual,${BUILD_STYLE}),)
- env ${MAKE_ENV} ${MAKE} do-build $(MAKE_TRACE)
+ env ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} do-build $(MAKE_TRACE)
else ifeq ($(strip ${BUILD_STYLE}),)
cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
${MAKE_FLAGS} ${ALL_TARGET} $(MAKE_TRACE)
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
diff --git a/package/bcm2835-vc/Makefile b/package/bcm2835-vc/Makefile
index 8efad79bd..6e4a4afe8 100644
--- a/package/bcm2835-vc/Makefile
+++ b/package/bcm2835-vc/Makefile
@@ -13,7 +13,7 @@ PKG_BUILDDEP:= cmake-host
PKG_URL:= https://github.com/raspberrypi/userland
PKG_SITES:= https://github.com/raspberrypi/userland.git
-PKG_SYSTEM_DEPENDS:= raspberry-pi
+PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2
include ${ADK_TOPDIR}/mk/package.mk
diff --git a/package/gcj/Makefile b/package/gcj/Makefile
index 006955a42..52b11e4d1 100644
--- a/package/gcj/Makefile
+++ b/package/gcj/Makefile
@@ -4,7 +4,7 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= gcj
-PKG_VERSION:= 4.8.4
+PKG_VERSION:= 4.9.2
PKG_RELEASE:= 1
PKG_HASH:= 655fe692ddd333c29c5a1418f50f63a42cdd9e9eb7ebdb7f621e33c4b8799e31
PKG_DESCR:= java compiler
diff --git a/package/kodi/Makefile b/package/kodi/Makefile
index 7e90ba9ed..4242bbf34 100644
--- a/package/kodi/Makefile
+++ b/package/kodi/Makefile
@@ -4,9 +4,9 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= kodi
-PKG_VERSION:= 14.0
-PKG_RELEASE:= 4
-PKG_HASH:= 11746d95cc59361f36ce6ea9d0d36bbd9ec3376e991f5ec1720f8ff740b91192
+PKG_VERSION:= 14.1
+PKG_RELEASE:= 1
+PKG_HASH:= a38059e292cf8523918834e49fcc2d688525ceb7951ddf7f5ee535f4147255d6
PKG_DESCR:= software media player
PKG_SECTION:= mm/video
PKG_DEPENDS:= boost python2 libstdcxx glibc-gconv
@@ -31,7 +31,7 @@ PKG_URL:= http://kodi.tv/
PKG_SITES:= http://mirrors.kodi.tv/releases/source/
DISTFILES:= $(PKG_VERSION)-Helix.tar.gz
-WRKDIST= $(WRKDIR)/xbmc-14.0-Helix
+WRKDIST= $(WRKDIR)/xbmc-14.1-Helix
PKG_CHOICES_KODI:= WITH_LIBRESSL WITH_OPENSSL
PKGCD_WITH_LIBRESSL:= with libressl
@@ -75,9 +75,11 @@ PKG_LIBC_DEPENDS:= glibc
PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc
PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc
+PKG_DEPENDS_RASPBERRY_PI2:= bcm2835-vc
+PKG_BUILDDEP_RASPBERRY_PI2:= bcm2835-vc
PKG_DEPENDS_SOLIDRUN_IMX6:= libfslvpuwrap gpu-viv-bin-mx6q
PKG_BUILDDEP_SOLIDRUN_IMX6:= libfslvpuwrap gpu-viv-bin-mx6q
-PKG_SYSTEM_DEPENDS:= raspberry-pi solidrun-imx6
+PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 solidrun-imx6
DIFF_IGNOREFILES:= configure missing depcomp install-sh INSTALL \
aclocal.m4 config.h.in
@@ -98,6 +100,12 @@ TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \
-I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
endif
+ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y)
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
+TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
+endif
AUTOTOOL_STYLE:= autoreconf
CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
@@ -176,6 +184,13 @@ CONFIGURE_ARGS+= --with-platform=raspberry-pi \
--disable-sdl \
--disable-x11
endif
+ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y)
+CONFIGURE_ARGS+= --with-platform=raspberry-pi \
+ --enable-player=omxplayer \
+ --enable-gles \
+ --disable-sdl \
+ --disable-x11
+endif
ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
CONFIGURE_ARGS+= --disable-x11 \
--disable-sdl \
diff --git a/package/libcec/Makefile b/package/libcec/Makefile
index 68bfcc708..27b1fe6f6 100644
--- a/package/libcec/Makefile
+++ b/package/libcec/Makefile
@@ -17,7 +17,9 @@ PKG_OPTS:= dev
PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc
PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc
-PKG_SYSTEM_DEPENDS:= raspberry-pi solidrun-imx6
+PKG_DEPENDS_RASPBERRY_PI2:= bcm2835-vc
+PKG_BUILDDEP_RASPBERRY_PI2:= bcm2835-vc
+PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 solidrun-imx6
include $(ADK_TOPDIR)/mk/package.mk
@@ -32,6 +34,11 @@ CONFIGURE_ARGS+= --enable-rpi \
--with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/include \
--with-rpi-lib-path=$(STAGING_TARGET_DIR)/opt/vc/lib
endif
+ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y)
+CONFIGURE_ARGS+= --enable-rpi \
+ --with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/includ