2005-06-09 11:46:12 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# module-init-tools
|
|
|
|
#
|
|
|
|
#############################################################
|
2006-08-10 23:00:23 +02:00
|
|
|
MODULE_INIT_TOOLS_VERSION=3.2.2
|
|
|
|
MODULE_INIT_TOOLS_SOURCE=module-init-tools-$(MODULE_INIT_TOOLS_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
MODULE_INIT_TOOLS_CAT:=$(BZCAT)
|
2006-08-10 23:00:23 +02:00
|
|
|
MODULE_INIT_TOOLS_SITE=http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/
|
|
|
|
MODULE_INIT_TOOLS_DIR=$(BUILD_DIR)/module-init-tools-$(MODULE_INIT_TOOLS_VERSION)
|
|
|
|
MODULE_INIT_TOOLS_DIR2=$(TOOL_BUILD_DIR)/module-init-tools-$(MODULE_INIT_TOOLS_VERSION)
|
|
|
|
MODULE_INIT_TOOLS_BINARY=depmod
|
2005-06-09 11:46:12 +02:00
|
|
|
MODULE_INIT_TOOLS_TARGET_BINARY=$(TARGET_DIR)/sbin/$(MODULE_INIT_TOOLS_BINARY)
|
|
|
|
|
|
|
|
STRIPPROG=$(STRIP)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(MODULE_INIT_TOOLS_SITE)/$(MODULE_INIT_TOOLS_SOURCE)
|
|
|
|
|
2006-07-09 06:54:00 +02:00
|
|
|
$(MODULE_INIT_TOOLS_DIR)/.unpacked: $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(MODULE_INIT_TOOLS_CAT) $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2006-08-10 23:00:23 +02:00
|
|
|
toolchain/patch-kernel.sh $(MODULE_INIT_TOOLS_DIR) package/module-init-tools \*.patch
|
2006-07-09 06:54:00 +02:00
|
|
|
touch $(MODULE_INIT_TOOLS_DIR)/.unpacked
|
2005-06-09 11:46:12 +02:00
|
|
|
|
2006-07-09 06:54:00 +02:00
|
|
|
$(MODULE_INIT_TOOLS_DIR)/.configured: $(MODULE_INIT_TOOLS_DIR)/.unpacked
|
2005-06-09 11:46:12 +02:00
|
|
|
(cd $(MODULE_INIT_TOOLS_DIR); \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
INSTALL=$(MODULE_INIT_TOOLS_DIR)/install-sh \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/ \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--program-transform-name='' \
|
|
|
|
);
|
|
|
|
touch $(MODULE_INIT_TOOLS_DIR)/.configured;
|
|
|
|
|
|
|
|
$(MODULE_INIT_TOOLS_DIR)/$(MODULE_INIT_TOOLS_BINARY): $(MODULE_INIT_TOOLS_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(MODULE_INIT_TOOLS_DIR)
|
2005-08-08 10:23:50 +02:00
|
|
|
touch -c $(MODULE_INIT_TOOLS_DIR)/$(MODULE_INIT_TOOLS_BINARY)
|
2005-06-09 11:46:12 +02:00
|
|
|
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_MODUTILS)),y)
|
2005-08-08 10:23:50 +02:00
|
|
|
$(MODULE_INIT_TOOLS_TARGET_BINARY): \
|
2005-08-05 00:17:55 +02:00
|
|
|
$(MODULE_INIT_TOOLS_DIR)/$(MODULE_INIT_TOOLS_BINARY) \
|
2005-06-09 11:46:12 +02:00
|
|
|
modutils
|
|
|
|
else
|
2005-08-08 10:23:50 +02:00
|
|
|
$(MODULE_INIT_TOOLS_TARGET_BINARY): \
|
2005-08-05 00:17:55 +02:00
|
|
|
$(MODULE_INIT_TOOLS_DIR)/$(MODULE_INIT_TOOLS_BINARY)
|
2005-06-09 11:46:12 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_MODUTILS)),y)
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR) -C $(MODULE_INIT_TOOLS_DIR) moveold
|
|
|
|
endif
|
|
|
|
STRIPPROG='$(STRIPPROG)' \
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR) -C $(MODULE_INIT_TOOLS_DIR) install-exec
|
|
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
2005-08-08 10:23:50 +02:00
|
|
|
touch -c $(MODULE_INIT_TOOLS_TARGET_BINARY)
|
2005-06-09 11:46:12 +02:00
|
|
|
|
2005-08-08 10:23:50 +02:00
|
|
|
module-init-tools: uclibc $(MODULE_INIT_TOOLS_TARGET_BINARY)
|
2005-06-09 11:46:12 +02:00
|
|
|
|
|
|
|
module-init-tools-source: $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE)
|
|
|
|
|
|
|
|
module-init-tools-clean:
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(MODULE_INIT_TOOLS_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(MODULE_INIT_TOOLS_DIR) clean
|
|
|
|
|
|
|
|
module-init-tools-dirclean:
|
|
|
|
rm -rf $(MODULE_INIT_TOOLS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
2006-08-10 23:00:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
$(MODULE_INIT_TOOLS_DIR2)/.source: $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(MODULE_INIT_TOOLS_CAT) $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
|
2006-08-10 23:00:23 +02:00
|
|
|
toolchain/patch-kernel.sh $(MODULE_INIT_TOOLS_DIR2) package/module-init-tools \*.patch
|
|
|
|
touch $(MODULE_INIT_TOOLS_DIR2)/.source
|
|
|
|
|
|
|
|
$(MODULE_INIT_TOOLS_DIR2)/.configured: $(MODULE_INIT_TOOLS_DIR2)/.source
|
|
|
|
(cd $(MODULE_INIT_TOOLS_DIR2); \
|
2006-12-14 15:32:32 +01:00
|
|
|
CC="$(HOSTCC)" \
|
2006-08-10 23:00:23 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--program-transform-name='' \
|
|
|
|
);
|
|
|
|
touch $(MODULE_INIT_TOOLS_DIR2)/.configured;
|
|
|
|
|
|
|
|
$(MODULE_INIT_TOOLS_DIR2)/$(MODULE_INIT_TOOLS_BINARY): $(MODULE_INIT_TOOLS_DIR2)/.configured
|
|
|
|
$(MAKE) -C $(MODULE_INIT_TOOLS_DIR2)
|
|
|
|
touch -c $(MODULE_INIT_TOOLS_DIR2)/$(MODULE_INIT_TOOLS_BINARY)
|
|
|
|
|
|
|
|
|
|
|
|
$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26: $(MODULE_INIT_TOOLS_DIR2)/$(MODULE_INIT_TOOLS_BINARY)
|
|
|
|
cp $(MODULE_INIT_TOOLS_DIR2)/$(MODULE_INIT_TOOLS_BINARY) $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26
|
|
|
|
|
|
|
|
cross-depmod26: $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26
|
|
|
|
|
|
|
|
cross-depmod26-source: $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE)
|
|
|
|
|
|
|
|
cross-depmod26-clean:
|
|
|
|
rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26
|
|
|
|
-$(MAKE) -C $(MODULE_INIT_TOOLS_DIR2) clean
|
|
|
|
|
|
|
|
cross-depmod26-dirclean:
|
|
|
|
rm -rf $(MODULE_INIT_TOOLS_DIR2)
|
|
|
|
|
|
|
|
#############################################################
|
2005-06-09 11:46:12 +02:00
|
|
|
#
|
|
|
|
## Toplevel Makefile options
|
|
|
|
#
|
|
|
|
##############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_MODULE_INIT_TOOLS)),y)
|
|
|
|
TARGETS+=module-init-tools
|
|
|
|
endif
|