aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/Makefile
blob: 823bd08b4e43579959420e20b4f736c5e94e1578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.l
#
# Copyright (C) 2012-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/host.mk

ARCH:=arm
BOARD:=brcm2708
BOARDNAME:=Broadcom BCM2708/BCM2835
FEATURES:=ext4 audio usb usbgadget display gpio
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
CPU_TYPE:=arm1176jzf-s
CPU_SUBTYPE:=vfp

LINUX_VERSION:=3.10.24

include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835

define Target/Description
	Build firmware image for Broadcom BCM2708/BCM2835 SoC devices.
	Currently produces SD Card image for Raspberry Pi.
endef

$(eval $(call BuildTarget))
an> "ap1000 1543" "tw2662 1658" "tw5334 1664" "ixdpg425 604" "cambria 1468" "sidewinder 1041" do set -- $board hexid=$(printf %x\\n $2) if [ "$2" -lt "256" ]; then # we have a low machtypeid, we just need a "mov" (e3a) printf "\xe3\xa0\x10\x$hexid" > $BIN_DIR/openwrt-$1-zImage else # we have a high machtypeid, we need a "mov" (e3a) and an "orr" (e38) printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/openwrt-$1-zImage fi # generate the image cat $BIN_DIR/openwrt-ixp4xx-zImage >> $BIN_DIR/openwrt-$1-zImage done