Blame view

buildroot/buildroot-2016.08.1/package/nvme/nvme.mk 833 Bytes
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
  ################################################################################
  #
  # nvme
  #
  ################################################################################
  
  NVME_VERSION = v0.3
  NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
  NVME_LICENSE = GPLv2+
  NVME_LICENSE_FILES = LICENSE
  
  # Yes LIBUDEV=0 means udev support enabled, LIBUDEV=1 means udev
  # support disabled.
  ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
  NVME_DEPENDENCIES += udev
  NVME_MAKE_OPTS += LIBUDEV=0
  else
  NVME_MAKE_OPTS += LIBUDEV=1
  endif
  
  # LIBUDEV=1 means that libudev is _disabled_
  define NVME_BUILD_CMDS
  	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
  		$(NVME_MAKE_OPTS) -C $(@D)
  endef
  
  define NVME_INSTALL_TARGET_CMDS
  	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
  		PREFIX=/usr install-bin
  endef
  
  $(eval $(generic-package))