1 #############################################################
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
11 $(DL_DIR
)/$(HOTPLUG_SOURCE
):
12 $(WGET
) -P
$(DL_DIR
) $(HOTPLUG_SITE
)/$(HOTPLUG_SOURCE
)
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
)
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
25 $(TARGET_DIR
)/sbin
/hotplug
: $(HOTPLUG_DIR
)/hotplug
26 cp
$(HOTPLUG_DIR
)/hotplug
$(TARGET_DIR
)/sbin
/hotplug
;
27 touch
-c
$(TARGET_DIR
)/sbin
/hotplug
29 hotplug
: uclibc
$(TARGET_DIR
)/sbin
/hotplug
31 hotplug-source
: $(DL_DIR
)/$(HOTPLUG_SOURCE
)
34 rm -f
$(TARGET_DIR
)/sbin
/hotplug
35 -$(MAKE
) -C
$(HOTPLUG_DIR
) clean