Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
Enforce correct -march option
|
||||
|
||||
Buildroot uses a normal ARM compiler to build the AM33X CM3 firmware
|
||||
(which runs on a Cortex-M3 processor), but Buildroot will have a
|
||||
default -march value that doesn't necessarily match the one needed for
|
||||
Cortex-M3, leading to build failures (gcc complains that the
|
||||
-mcpu=cortex-m3 option being passed is not compatible with the
|
||||
selected -march).
|
||||
|
||||
Fix this by explicitly indicating -march=armv7-m.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Updated the patch to the latest version of the Makefile
|
||||
|
||||
Signed-off-by: Anders Darander <anders@chargestorm.se>
|
||||
|
||||
Index: b/Makefile
|
||||
===================================================================
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -13,7 +13,7 @@ SRCDIR = src
|
||||
BINDIR = bin
|
||||
|
||||
INCLUDES = $(SRCDIR)/include
|
||||
-CFLAGS =-mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \
|
||||
+CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \
|
||||
-Werror-implicit-function-declaration -Wstrict-prototypes \
|
||||
-Wdeclaration-after-statement -fno-delete-null-pointer-checks \
|
||||
-Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_AM33X_CM3
|
||||
bool "am33x-cm3"
|
||||
depends on BR2_arm # only relevant for TI am335x
|
||||
help
|
||||
Cortex-M3 binary blob for suspend-resume on am335x
|
||||
|
||||
http://arago-project.org/git/projects/am33x-cm3.git
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Load the PM CM3 firmware
|
||||
echo 1 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
|
||||
cat /lib/firmware/am335x-pm-firmware.bin > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/data
|
||||
echo 0 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
|
||||
31
deprecated/firmware/buildroot/package/am33x-cm3/am33x-cm3.mk
Normal file
31
deprecated/firmware/buildroot/package/am33x-cm3/am33x-cm3.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# am33x-cm3
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# This should correpsond to v05.00.00.02
|
||||
AM33X_CM3_VERSION = 11107db2f1e9e58ee75d4fe9cc38423c9a6e4365
|
||||
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))
|
||||
Reference in New Issue
Block a user