diff options
| author | Mike Baker <mbm@openwrt.org> | 2004-05-25 04:32:27 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2004-05-25 04:32:27 +0000 |
| commit | e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98 (patch) | |
| tree | a2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/hotplug.mk | |
| parent | edab25e640eee1fd2ecc9d4dee916b5164cc35f8 (diff) | |
| download | mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.zip mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.gz mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.bz2 | |
Initial revision
SVN-Revision: 30
Diffstat (limited to 'obsolete-buildroot/make/hotplug.mk')
| -rw-r--r-- | obsolete-buildroot/make/hotplug.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/hotplug.mk b/obsolete-buildroot/make/hotplug.mk new file mode 100644 index 0000000..e13a602 --- /dev/null +++ b/obsolete-buildroot/make/hotplug.mk @@ -0,0 +1,39 @@ +############################################################# +# +# hotplug support +# +############################################################# +HOTPLUG_SOURCE=diethotplug-0.4.tar.gz +HOTPLUG_SITE=http://aleron.dl.sourceforge.net/sourceforge/linux-hotplug +HOTPLUG_DIR=$(BUILD_DIR)/diethotplug-0.4 +HOTPLUG_PATCH=$(SOURCE_DIR)/hotplug.patch + +$(DL_DIR)/$(HOTPLUG_SOURCE): + $(WGET) -P $(DL_DIR) $(HOTPLUG_SITE)/$(HOTPLUG_SOURCE) + +$(HOTPLUG_DIR): $(DL_DIR)/$(HOTPLUG_SOURCE) $(HOTPLUG_PATCH) + zcat $(DL_DIR)/$(HOTPLUG_SOURCE) | tar -C $(BUILD_DIR) -xvf - + cat $(HOTPLUG_PATCH) | patch -p1 -d $(HOTPLUG_DIR) + +$(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 + +hotplug-source: $(DL_DIR)/$(HOTPLUG_SOURCE) + +hotplug-clean: + rm -f $(TARGET_DIR)/sbin/hotplug + -$(MAKE) -C $(HOTPLUG_DIR) clean + +hotplug-dirclean: + rm -rf $(HOTPLUG_DIR) + |
