fmlib.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ################################################################################
  2. #
  3. # fmlib
  4. #
  5. ################################################################################
  6. FMLIB_VERSION = LSDK-21.08
  7. FMLIB_SITE = $(call github,nxp-qoriq,fmlib,$(FMLIB_VERSION))
  8. FMLIB_LICENSE = BSD-3-Clause
  9. FMLIB_LICENSE_FILES = COPYING
  10. FMLIB_DEPENDENCIES = linux
  11. FMLIB_INSTALL_STAGING = YES
  12. # This package installs a static library only, so there's
  13. # nothing to install to the target
  14. FMLIB_INSTALL_TARGET = NO
  15. FMLIB_MAKE_OPTS = \
  16. CC="$(TARGET_CC)" \
  17. CROSS_COMPILE="$(TARGET_CROSS)" \
  18. KERNEL_SRC="$(LINUX_DIR)" \
  19. PREFIX="$(STAGING_DIR)/usr"
  20. FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
  21. FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
  22. define FMLIB_BUILD_CMDS
  23. $(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
  24. $(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
  25. endef
  26. define FMLIB_INSTALL_STAGING_CMDS
  27. $(RM) $(STAGING_DIR)/usr/lib/libfm.a
  28. $(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
  29. endef
  30. $(eval $(generic-package))