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 MAKEDEVS_BUILD_CMDS
19 $(TARGET_CC
) $(TARGET_CFLAGS
) $(TARGET_LDFLAGS
) \
20 package
/makedevs
/makedevs.c
-o
$(@D
)/makedevs
23 define MAKEDEVS_INSTALL_TARGET_CMDS
24 $(INSTALL
) -D
-m
755 $(@D
)/makedevs
$(TARGET_DIR
)/usr
/sbin
/makedevs
27 define HOST_MAKEDEVS_BUILD_CMDS
28 $(HOSTCC
) $(HOST_MAKEDEVS_CFLAGS
) package
/makedevs
/makedevs.c \
29 -o
$(@D
)/makedevs
$(HOST_MAKEDEVS_LDFLAGS
)
32 define HOST_MAKEDEVS_INSTALL_CMDS
33 $(INSTALL
) -D
-m
755 $(@D
)/makedevs
$(HOST_DIR
)/usr
/bin
/makedevs
36 $(eval
$(generic-package
))
37 $(eval
$(host-generic-package
))