![Yann E. MORIN](/assets/img/avatar_default.png)
Now that Freescale has been wholly swallowed into NXP, the public-facing git repositories that were hosting those two packages are no longer available. Fortunately, they had been mirrored on Code Aurora forge (a Linux Foundation project, so relatively stable and trustworthy), which has the tags we need, and that generates the exact same archives. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Reviewed-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# fmlib
|
|
#
|
|
################################################################################
|
|
|
|
FMLIB_VERSION = fsl-sdk-v2.0
|
|
FMLIB_SITE = https://source.codeaurora.org/external/qoriq/qoriq-yocto-sdk/fmlib
|
|
FMLIB_SITE_METHOD = git
|
|
FMLIB_LICENSE = BSD-3-Clause, GPL-2.0+
|
|
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"
|
|
|
|
FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
|
|
FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
|
|
|
|
define FMLIB_BUILD_CMDS
|
|
$(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
|
|
endef
|
|
|
|
define FMLIB_INSTALL_STAGING_CMDS
|
|
$(RM) $(STAGING_DIR)/usr/lib/libfm.a
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|