2014-09-24 14:08:28 +08:00
|
|
|
################################################################################
|
2014-06-11 10:50:28 +08:00
|
|
|
#
|
|
|
|
# fmlib
|
|
|
|
#
|
2014-09-24 14:08:28 +08:00
|
|
|
################################################################################
|
2014-06-11 10:50:28 +08:00
|
|
|
|
2016-07-27 20:46:23 +08:00
|
|
|
FMLIB_VERSION = fsl-sdk-v2.0
|
2014-06-11 10:50:28 +08:00
|
|
|
FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git
|
2017-03-30 21:43:38 +08:00
|
|
|
FMLIB_LICENSE = BSD-3-Clause, GPL-2.0+
|
2014-06-11 10:50:28 +08: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 21:41:26 +08:00
|
|
|
FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
|
|
|
|
FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
|
2014-06-11 10:50:28 +08:00
|
|
|
|
|
|
|
define FMLIB_BUILD_CMDS
|
2016-05-18 21:41:26 +08:00
|
|
|
$(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
|
2014-06-11 10:50:28 +08:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FMLIB_INSTALL_STAGING_CMDS
|
2016-06-13 04:21:57 +08:00
|
|
|
$(RM) $(STAGING_DIR)/usr/lib/libfm.a
|
2016-10-28 21:18:28 +08:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
|
2014-06-11 10:50:28 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|