2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-06-11 04:50:28 +02:00
|
|
|
#
|
|
|
|
# fmlib
|
|
|
|
#
|
2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-06-11 04:50:28 +02:00
|
|
|
|
2016-07-27 14:46:23 +02:00
|
|
|
FMLIB_VERSION = fsl-sdk-v2.0
|
2014-06-11 04:50:28 +02:00
|
|
|
FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git
|
2017-03-30 15:43:38 +02:00
|
|
|
FMLIB_LICENSE = BSD-3-Clause, GPL-2.0+
|
2014-06-11 04:50:28 +02:00
|
|
|
FMLIB_LICENSE_FILES = COPYING
|
|
|
|
FMLIB_DEPENDENCIES = linux
|
|
|
|
FMLIB_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# This package installs a static library only, so there's
|
|
|
|
# nothing to install to the target
|
|
|
|
FMLIB_INSTALL_TARGET = NO
|
|
|
|
|
|
|
|
FMLIB_MAKE_OPTS = \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
KERNEL_SRC="$(LINUX_DIR)" \
|
|
|
|
PREFIX="$(STAGING_DIR)/usr"
|
|
|
|
|
2016-05-18 15:41:26 +02:00
|
|
|
FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
|
|
|
|
FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
|
2014-06-11 04:50:28 +02:00
|
|
|
|
|
|
|
define FMLIB_BUILD_CMDS
|
2016-05-18 15:41:26 +02:00
|
|
|
$(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
|
2014-06-11 04:50:28 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FMLIB_INSTALL_STAGING_CMDS
|
2016-06-12 22:21:57 +02:00
|
|
|
$(RM) $(STAGING_DIR)/usr/lib/libfm.a
|
2016-10-28 15:18:28 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
|
2014-06-11 04:50:28 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|