ruby: bump version to 2.4.1
[buildroot-gz.git] / package / fmlib / fmlib.mk
blob16e817699e7b23d5b15cd767cbe3ed74403d816d
1 ################################################################################
3 # fmlib
5 ################################################################################
7 FMLIB_VERSION = fsl-sdk-v2.0
8 FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git
9 FMLIB_LICENSE = BSD-3c, GPLv2+
10 FMLIB_LICENSE_FILES = COPYING
11 FMLIB_DEPENDENCIES = linux
12 FMLIB_INSTALL_STAGING = YES
14 # This package installs a static library only, so there's
15 # nothing to install to the target
16 FMLIB_INSTALL_TARGET = NO
18 FMLIB_MAKE_OPTS = \
19 CC="$(TARGET_CC)" \
20 CROSS_COMPILE="$(TARGET_CROSS)" \
21 KERNEL_SRC="$(LINUX_DIR)" \
22 PREFIX="$(STAGING_DIR)/usr"
24 FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
25 FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
27 define FMLIB_BUILD_CMDS
28 $(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
29 $(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
30 endef
32 define FMLIB_INSTALL_STAGING_CMDS
33 $(RM) $(STAGING_DIR)/usr/lib/libfm.a
34 $(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
35 endef
37 $(eval $(generic-package))