python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / fmc / fmc.mk
blob2a95fec0b7401fb451893d4b62d369bc9976cce4
1 ################################################################################
3 # fmc
5 ################################################################################
7 FMC_VERSION = fsl-sdk-v2.0
8 FMC_SITE = git://git.freescale.com/ppc/sdk/fmc.git
9 FMC_LICENSE = MIT
10 FMC_LICENSE_FILES = COPYING
11 FMC_DEPENDENCIES = libxml2 tclap fmlib
13 FMC_MAKE_OPTS = \
14 CC="$(TARGET_CC)" \
15 CXX="$(TARGET_CXX)" \
16 FMD_USPACE_HEADER_PATH="$(STAGING_DIR)/usr/include/fmd" \
17 FMD_USPACE_LIB_PATH="$(STAGING_DIR)/usr/lib" \
18 LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \
19 TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include"
21 ifeq ($(BR2_powerpc64),y)
22 FMC_MAKE_OPTS += M64BIT=1
23 endif
25 # fmc's platform is the same as fmlib's.
26 FMC_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
28 define FMC_BUILD_CMDS
29 $(SED) "s:P4080:$(FMC_PLATFORM):g" $(@D)/source/Makefile
30 # The linking step has dependency issues so using MAKE1
31 $(TARGET_MAKE_ENV) $(MAKE1) $(FMC_MAKE_OPTS) -C $(@D)/source
32 endef
34 define FMC_INSTALL_TARGET_CMDS
35 $(INSTALL) -D -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc
36 cp -dpfr $(@D)/etc/fmc $(TARGET_DIR)/etc/
37 endef
39 $(eval $(generic-package))