2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-06-11 04:50:30 +02:00
|
|
|
#
|
|
|
|
# fmc
|
|
|
|
#
|
2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-06-11 04:50:30 +02:00
|
|
|
|
2016-07-27 14:46:24 +02:00
|
|
|
FMC_VERSION = fsl-sdk-v2.0
|
2014-06-11 04:50:30 +02:00
|
|
|
FMC_SITE = git://git.freescale.com/ppc/sdk/fmc.git
|
|
|
|
FMC_LICENSE = MIT
|
|
|
|
FMC_LICENSE_FILES = COPYING
|
|
|
|
FMC_DEPENDENCIES = libxml2 tclap fmlib
|
|
|
|
|
|
|
|
FMC_MAKE_OPTS = \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CXX="$(TARGET_CXX)" \
|
|
|
|
FMD_USPACE_HEADER_PATH="$(STAGING_DIR)/usr/include/fmd" \
|
|
|
|
FMD_USPACE_LIB_PATH="$(STAGING_DIR)/usr/lib" \
|
|
|
|
LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \
|
|
|
|
TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include"
|
|
|
|
|
2016-05-18 15:41:25 +02:00
|
|
|
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))
|
|
|
|
|
2014-06-11 04:50:30 +02:00
|
|
|
define FMC_BUILD_CMDS
|
2016-05-18 15:41:25 +02:00
|
|
|
$(SED) "s:P4080:$(FMC_PLATFORM):g" $(@D)/source/Makefile
|
2014-06-11 04:50:30 +02:00
|
|
|
# The linking step has dependency issues so using MAKE1
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) $(FMC_MAKE_OPTS) -C $(@D)/source
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FMC_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc
|
|
|
|
cp -dpfr $(@D)/etc/fmc $(TARGET_DIR)/etc/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|