aboutsummaryrefslogtreecommitdiff
path: root/package/fmc
diff options
context:
space:
mode:
authorGravatar Matt Weber <matthew.weber@rockwellcollins.com>2016-05-18 08:41:25 -0500
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-12 22:23:23 +0200
commita7487bbc25d7736c00e2940e7e7c954ae80d1285 (patch)
treeb68739797a1f21f4026f9d8350cee220c32f2055 /package/fmc
parentc0db6f93ef07cea7a57e3c15f51b7863173b9b20 (diff)
downloadbuildroot-a7487bbc25d7736c00e2940e7e7c954ae80d1285.tar.gz
buildroot-a7487bbc25d7736c00e2940e7e7c954ae80d1285.tar.bz2
fmc: added powerpc e6500 support
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Ronak Desai <ronak.desai@rockwellcollins.com> [Thomas: - remove useless indentation.] - calculate FMC_PLATFORM from BR2_PACKAGE_FMLIB_PLATFORM.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/fmc')
-rw-r--r--package/fmc/Config.in6
-rw-r--r--package/fmc/fmc.mk9
2 files changed, 12 insertions, 3 deletions
diff --git a/package/fmc/Config.in b/package/fmc/Config.in
index a50f80da69..b7398e2bf6 100644
--- a/package/fmc/Config.in
+++ b/package/fmc/Config.in
@@ -1,14 +1,14 @@
comment "fmc needs a toolchain w/ C++"
- depends on BR2_powerpc_e500mc
+ depends on BR2_powerpc_e500mc || BR2_powerpc_e6500
depends on !BR2_INSTALL_LIBSTDCPP
comment "fmc needs a Linux kernel to be built"
- depends on BR2_powerpc_e500mc
+ depends on BR2_powerpc_e500mc || BR2_powerpc_e6500
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_FMC
bool "fmc"
- depends on BR2_powerpc_e500mc
+ depends on BR2_powerpc_e500mc || BR2_powerpc_e6500
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_LINUX_KERNEL # fmlib
select BR2_PACKAGE_TCLAP
diff --git a/package/fmc/fmc.mk b/package/fmc/fmc.mk
index 2146bc2f27..0a2e4886eb 100644
--- a/package/fmc/fmc.mk
+++ b/package/fmc/fmc.mk
@@ -1,3 +1,4 @@
+
################################################################################
#
# fmc
@@ -18,7 +19,15 @@ FMC_MAKE_OPTS = \
LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \
TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include"
+ifeq ($(BR2_powerpc64),y)
+FMC_MAKE_OPTS += M64BIT=1
+endif
+
+# fmc's platform is the same as fmlib's.
+FMC_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
+
define FMC_BUILD_CMDS
+ $(SED) "s:P4080:$(FMC_PLATFORM):g" $(@D)/source/Makefile
# The linking step has dependency issues so using MAKE1
$(TARGET_MAKE_ENV) $(MAKE1) $(FMC_MAKE_OPTS) -C $(@D)/source
endef