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-05-17 21:04:43 +02:00
|
|
|
FMLIB_VERSION = fsl-sdk-v1.8
|
2014-06-11 04:50:28 +02:00
|
|
|
FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git
|
2015-12-14 14:11:14 +01:00
|
|
|
FMLIB_LICENSE = BSD-3c, GPLv2+
|
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"
|
|
|
|
|
|
|
|
ifeq ($(BR2_powerpc_e500mc),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
FMLIB_ARCHTYPE = ppce500mc
|
2014-06-11 04:50:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define FMLIB_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FMLIB_INSTALL_STAGING_CMDS
|
|
|
|
$(FMLIB_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|