2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-06-09 13:11:10 +02:00
|
|
|
#
|
2010-03-24 23:12:29 +01:00
|
|
|
# makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2017-03-30 15:43:32 +02:00
|
|
|
MAKEDEVS_LICENSE = GPL-2.0
|
2014-06-11 21:12:28 +02:00
|
|
|
|
2016-06-29 17:19:44 +02:00
|
|
|
HOST_MAKEDEVS_CFLAGS = $(HOST_CFLAGS)
|
|
|
|
HOST_MAKEDEVS_LDFLAGS = $(HOST_LDFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES),y)
|
|
|
|
HOST_MAKEDEVS_DEPENDENCIES += host-libcap
|
|
|
|
HOST_MAKEDEVS_CFLAGS += -DEXTENDED_ATTRIBUTES
|
|
|
|
HOST_MAKEDEVS_LDFLAGS += -lcap
|
|
|
|
endif
|
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define HOST_MAKEDEVS_BUILD_CMDS
|
2016-06-29 17:19:44 +02:00
|
|
|
$(HOSTCC) $(HOST_MAKEDEVS_CFLAGS) package/makedevs/makedevs.c \
|
|
|
|
-o $(@D)/makedevs $(HOST_MAKEDEVS_LDFLAGS)
|
2011-03-12 22:19:37 +01:00
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define HOST_MAKEDEVS_INSTALL_CMDS
|
2014-06-01 14:38:01 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/makedevs $(HOST_DIR)/usr/bin/makedevs
|
2011-03-12 22:19:37 +01:00
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|