summaryrefslogtreecommitdiffstats
path: root/package/am33x-cm3/am33x-cm3.mk
blob: 929c4a5cd92cc8364d9dd41362630dc254d0107f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
#
# am33x-cm3
#
################################################################################

AM33X_CM3_VERSION = AM335xPSP_04.06.00.10-rc1
AM33X_CM3_SITE = http://arago-project.org/git/projects/am33x-cm3.git
AM33X_CM3_SITE_METHOD = git
AM33X_CM3_LICENSE = TI Publicly Available Software License
AM33X_CM3_LICENSE_FILES = License.txt

# The build command below will use the standard cross-compiler (normally
# build for Cortex-A8, to build the FW for the Cortex-M3.
define AM33X_CM3_BUILD_CMDS
	$(MAKE) CC="$(TARGET_CC)" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all
endef

# Not all of the firmware files are used
define AM33X_CM3_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0644 -D $(@D)/bin/am335x-pm-firmware.bin \
		$(TARGET_DIR)/lib/firmware/am335x-pm-firmware.bin
endef

define AM33X_CM3_INSTALL_INIT_SYSV
	$(INSTALL) -m 0755 -D package/am33x-cm3/S93-am335x-pm-firmware-load \
		$(TARGET_DIR)/etc/init.d/S93-am335x-pm-firmware-load
endef

$(eval $(generic-package))