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
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
# source included in buildroot
|
|
|
|
MAKEDEVS_SOURCE =
|
|
|
|
HOST_MAKEDEVS_SOURCE =
|
2010-03-24 23:12:29 +01:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define MAKEDEVS_BUILD_CMDS
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
|
|
package/makedevs/makedevs.c -o $(@D)/makedevs
|
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define MAKEDEVS_INSTALL_TARGET_CMDS
|
|
|
|
install -D -m 755 $(@D)/makedevs $(TARGET_DIR)/usr/sbin/makedevs
|
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define MAKEDEVS_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/makedevs
|
|
|
|
endef
|
2005-06-24 07:02:00 +02:00
|
|
|
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define HOST_MAKEDEVS_BUILD_CMDS
|
|
|
|
$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
|
|
|
|
package/makedevs/makedevs.c -o $(@D)/makedevs
|
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2011-03-12 22:19:37 +01:00
|
|
|
define HOST_MAKEDEVS_INSTALL_CMDS
|
|
|
|
install -D -m 755 $(@D)/makedevs $(HOST_DIR)/usr/bin/makedevs
|
|
|
|
endef
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|