2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hotplug support
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
HOTPLUG_SOURCE=diethotplug-0.4.tar.gz
|
2005-06-09 14:15:00 +02:00
|
|
|
HOTPLUG_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/linux-hotplug
|
2003-01-18 22:27:22 +01:00
|
|
|
HOTPLUG_DIR=$(BUILD_DIR)/diethotplug-0.4
|
|
|
|
|
|
|
|
$(DL_DIR)/$(HOTPLUG_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(HOTPLUG_SITE)/$(HOTPLUG_SOURCE)
|
|
|
|
|
2004-10-09 04:49:33 +02:00
|
|
|
$(HOTPLUG_DIR): $(DL_DIR)/$(HOTPLUG_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
zcat $(DL_DIR)/$(HOTPLUG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2004-10-09 04:49:33 +02:00
|
|
|
toolchain/patch-kernel.sh $(HOTPLUG_DIR) package/hotplug/ hotplug\*.patch
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(HOTPLUG_DIR)/hotplug: $(HOTPLUG_DIR)
|
|
|
|
$(MAKE) CROSS=$(TARGET_CROSS) DEBUG=false KLIBC=false \
|
|
|
|
KERNEL_INCLUDE_DIR=$(STAGING_DIR)/include \
|
|
|
|
TARGET_DIR=$(TARGET_DIR) -C $(HOTPLUG_DIR);
|
|
|
|
$(STRIP) $(HOTPLUG_DIR)/hotplug;
|
|
|
|
touch -c $(HOTPLUG_DIR)/hotplug
|
|
|
|
|
|
|
|
$(TARGET_DIR)/sbin/hotplug: $(HOTPLUG_DIR)/hotplug
|
|
|
|
cp $(HOTPLUG_DIR)/hotplug $(TARGET_DIR)/sbin/hotplug;
|
|
|
|
touch -c $(TARGET_DIR)/sbin/hotplug
|
|
|
|
|
|
|
|
hotplug: uclibc $(TARGET_DIR)/sbin/hotplug
|
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
hotplug-source: $(DL_DIR)/$(HOTPLUG_SOURCE)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
hotplug-clean:
|
|
|
|
rm -f $(TARGET_DIR)/sbin/hotplug
|
|
|
|
-$(MAKE) -C $(HOTPLUG_DIR) clean
|
|
|
|
|
|
|
|
hotplug-dirclean:
|
|
|
|
rm -rf $(HOTPLUG_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_HOTPLUG)),y)
|
|
|
|
TARGETS+=hotplug
|
|
|
|
endif
|