From a7487bbc25d7736c00e2940e7e7c954ae80d1285 Mon Sep 17 00:00:00 2001 From: Matt Weber Date: Wed, 18 May 2016 08:41:25 -0500 Subject: [PATCH] fmc: added powerpc e6500 support Signed-off-by: Matt Weber Signed-off-by: Ronak Desai [Thomas: - remove useless indentation.] - calculate FMC_PLATFORM from BR2_PACKAGE_FMLIB_PLATFORM.] Signed-off-by: Thomas Petazzoni --- package/fmc/Config.in | 6 +++--- package/fmc/fmc.mk | 9 +++++++++ 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 -- 2.30.2