2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hotplug support
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
HOTPLUG_VERSION:=0.5
|
|
|
|
HOTPLUG_SOURCE=package/hotplug/diethotplug-$(HOTPLUG_VERSION).tar
|
2007-12-17 13:29:06 +01:00
|
|
|
HOTPLUG_SITE=$(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
|
2007-07-11 16:06:06 +02:00
|
|
|
HOTPLUG_DIR=$(BUILD_DIR)/diethotplug-$(HOTPLUG_VERSION)
|
2006-08-10 22:08:31 +02:00
|
|
|
HOTPLUG_CAT=cat
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2006-08-10 22:08:31 +02:00
|
|
|
$(HOTPLUG_DIR): $(HOTPLUG_SOURCE)
|
|
|
|
$(HOTPLUG_CAT) $(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 \
|
2007-08-12 00:26:56 +02:00
|
|
|
KERNEL_INCLUDE_DIR=$(STAGING_DIR)/usr/include \
|
2007-08-21 21:20:18 +02:00
|
|
|
TARGET_DIR=$(TARGET_DIR) -C $(HOTPLUG_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(HOTPLUG_DIR)/hotplug
|
2003-01-18 22:27:22 +01:00
|
|
|
touch -c $(HOTPLUG_DIR)/hotplug
|
|
|
|
|
|
|
|
$(TARGET_DIR)/sbin/hotplug: $(HOTPLUG_DIR)/hotplug
|
2007-08-21 21:20:18 +02:00
|
|
|
cp $(HOTPLUG_DIR)/hotplug $(TARGET_DIR)/sbin/hotplug
|
2003-01-18 22:27:22 +01:00
|
|
|
touch -c $(TARGET_DIR)/sbin/hotplug
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
hotplug: $(TARGET_DIR)/sbin/hotplug
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2007-10-19 00:59:44 +02:00
|
|
|
hotplug-source: $(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
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HOTPLUG),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=hotplug
|
|
|
|
endif
|