Blame view

buildroot/buildroot-2016.08.1/package/fmlib/fmlib.mk 1.09 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  ################################################################################
  #
  # fmlib
  #
  ################################################################################
  
  FMLIB_VERSION = fsl-sdk-v2.0
  FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git
  FMLIB_LICENSE = BSD-3c, GPLv2+
  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
  	$(FMLIB_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
  endef
  
  $(eval $(generic-package))