blob: 01a55530db6590393deaa9c0dd80842fb2c6a4dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#############################################################
#
# modutils
#
#############################################################
MODUTILS_SOURCE=modutils-2.4.27.tar.bz2
MODUTILS_SITE=ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.4/
MODUTILS_DIR=$(BUILD_DIR)/modutils-2.4.27
MODUTILS_BINARY=insmod
MODUTILS_TARGET_BINARY=$(TARGET_DIR)/sbin/$(MODUTILS_BINARY)
STRIPPROG=$(STRIP)
$(DL_DIR)/$(MODUTILS_SOURCE):
$(WGET) -P $(DL_DIR) $(MODUTILS_SITE)/$(MODUTILS_SOURCE)
$(MODUTILS_DIR)/.source: $(DL_DIR)/$(MODUTILS_SOURCE)
bzcat $(DL_DIR)/$(MODUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
toolchain/patch-kernel.sh $(MODUTILS_DIR) \
package/modutils \*.patch
touch $(MODUTILS_DIR)/.source
$(MODUTILS_DIR)/.configured: $(MODUTILS_DIR)/.source
(cd $(MODUTILS_DIR); \
$(TARGET_CONFIGURE_OPTS) \
INSTALL=$(MODUTILS_DIR)/install-sh \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/ \
--sysconfdir=/etc \
);
touch $(MODUTILS_DIR)/.configured;
$(MODUTILS_DIR)/$(MODUTILS_BINARY): $(MODUTILS_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(MODUTILS_DIR)
$(TARGET_DIR)/$(MODUTILS_TARGET_BINARY): $(MODUTILS_DIR)/$(MODUTILS_BINARY)
STRIPPROG='$(STRIPPROG)' \
$(MAKE) prefix=$(TARGET_DIR) -C $(MODUTILS_DIR) install-bin
rm -Rf $(TARGET_DIR)/usr/man
modutils: uclibc $(TARGET_DIR)/$(MODUTILS_TARGET_BINARY)
modutils-source: $(DL_DIR)/$(MODUTILS_SOURCE)
modutils-clean:
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(MODUTILS_DIR) uninstall
-$(MAKE) -C $(MODUTILS_DIR) clean
modutils-dirclean:
rm -rf $(MODUTILS_DIR)
#############################################################
#
## Toplevel Makefile options
#
##############################################################
ifeq ($(strip $(BR2_PACKAGE_MODUTILS)),y)
TARGETS+=modutils
endif
|