add b44 to boot
[openwrt.git] / obsolete-buildroot / make / hotplug.mk
1 #############################################################
2 #
3 # hotplug support
4 #
5 #############################################################
6 HOTPLUG_SOURCE=diethotplug-0.4.tar.gz
7 HOTPLUG_SITE=http://aleron.dl.sourceforge.net/sourceforge/linux-hotplug
8 HOTPLUG_DIR=$(BUILD_DIR)/diethotplug-0.4
9 HOTPLUG_PATCH=$(SOURCE_DIR)/hotplug.patch
10
11 $(DL_DIR)/$(HOTPLUG_SOURCE):
12 $(WGET) -P $(DL_DIR) $(HOTPLUG_SITE)/$(HOTPLUG_SOURCE)
13
14 $(HOTPLUG_DIR): $(DL_DIR)/$(HOTPLUG_SOURCE) $(HOTPLUG_PATCH)
15 zcat $(DL_DIR)/$(HOTPLUG_SOURCE) | tar -C $(BUILD_DIR) -xvf -
16 cat $(HOTPLUG_PATCH) | patch -p1 -d $(HOTPLUG_DIR)
17
18 $(HOTPLUG_DIR)/hotplug: $(HOTPLUG_DIR)
19 $(MAKE) CROSS=$(TARGET_CROSS) DEBUG=false KLIBC=false \
20 KERNEL_INCLUDE_DIR=$(STAGING_DIR)/include \
21 TARGET_DIR=$(TARGET_DIR) -C $(HOTPLUG_DIR);
22 $(STRIP) $(HOTPLUG_DIR)/hotplug;
23 touch -c $(HOTPLUG_DIR)/hotplug
24
25 $(TARGET_DIR)/sbin/hotplug: $(HOTPLUG_DIR)/hotplug
26 cp $(HOTPLUG_DIR)/hotplug $(TARGET_DIR)/sbin/hotplug;
27 touch -c $(TARGET_DIR)/sbin/hotplug
28
29 hotplug: uclibc $(TARGET_DIR)/sbin/hotplug
30
31 hotplug-source: $(DL_DIR)/$(HOTPLUG_SOURCE)
32
33 hotplug-clean:
34 rm -f $(TARGET_DIR)/sbin/hotplug
35 -$(MAKE) -C $(HOTPLUG_DIR) clean
36
37 hotplug-dirclean:
38 rm -rf $(HOTPLUG_DIR)
39
This page took 0.051918 seconds and 5 git commands to generate.