1 ################################################################################
5 ################################################################################
7 MAKEDEVS_LICENSE
= GPLv2
9 HOST_MAKEDEVS_CFLAGS
= $(HOST_CFLAGS
)
10 HOST_MAKEDEVS_LDFLAGS
= $(HOST_LDFLAGS
)
12 ifeq ($(BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
),y
)
13 HOST_MAKEDEVS_DEPENDENCIES
+= host-libcap
14 HOST_MAKEDEVS_CFLAGS
+= -DEXTENDED_ATTRIBUTES
15 HOST_MAKEDEVS_LDFLAGS
+= -lcap
18 define HOST_MAKEDEVS_BUILD_CMDS
19 $(HOSTCC
) $(HOST_MAKEDEVS_CFLAGS
) package
/makedevs
/makedevs.c \
20 -o
$(@D
)/makedevs
$(HOST_MAKEDEVS_LDFLAGS
)
23 define HOST_MAKEDEVS_INSTALL_CMDS
24 $(INSTALL
) -D
-m
755 $(@D
)/makedevs
$(HOST_DIR
)/usr
/bin
/makedevs
27 $(eval
$(host-generic-package
))