1 ################################################################################
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
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
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
)
37 $(eval
$(generic-package
))