source: trunk/initrd/make.d/udev.rul @ 567

Last change on this file since 567 was 567, checked in by dennis, 8 years ago

Last software update changes, trunk is working again

  • Property svn:keywords set to Id URL
File size: 1.4 KB
Line 
1#
2#  vi: set filetype=make:
3#
4
5UDEV_VERSION    = 182
6UDEV_TARBALL    = udev-$(UDEV_VERSION).tar.bz2
7UDEV_DIR        = $(SRC_DIR)/udev-$(UDEV_VERSION)
8
9#### http://www.kernel.org/pub/linux/utils/kernel/hotplug/ ####
10UDEV_URL        = ftp://ftp.sara.nl/pub/sali/sources/
11UDEV_INFO       = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
12
13UDEV_CONFIGURE_DEFAULT  = --prefix=/usr --sysconfdir=/etc --sbindir=/sbin --libdir=/lib --with-rootlibdir=/lib --libexecdir=/lib --disable-introspection
14UDEV_CONFIGURE          = $(UDEV_CONFIGURE_DEFAULT)
15
16ifeq ($(ARCH),ppc64)
17        UDEV_CONFIGURE = USBUTILS_CFLAGS=-I$(INITRD_BUILD_DIR)/include USBUTILS_LIBS=-L$(INITRD_BUILD_DIR)/lib $(UDEV_CONFIGURE_DEFAULT)
18endif
19
20export LD_LIBRARY_PATH="$${LD_LIBRARY_PATH}:$(INITRD_BUILD_DIR)/lib:$(INITRD_BUILD_DIR)/usr/lib"
21
22.PHONY: udev
23udev: $(UDEV_DIR).build
24
25$(UDEV_DIR).build:  $(UDEV_DIR).get
26        cd $(UDEV_DIR) && CFLAGS="-I$(INITRD_BUILD_DIR)/usr/include -L$(INITRD_BUILD_DIR)/usr/lib" \
27        ./configure $(UDEV_CONFIGURE) && make
28        touch $@
29
30.PHONY: udev_install
31udev_install: $(UDEV_DIR).install
32
33$(UDEV_DIR).install:    $(UDEV_DIR).build
34        cd $(UDEV_DIR) && make install DESTDIR=$(INITRD_BUILD_DIR)
35
36        touch $@
37
38$(UDEV_DIR).get:
39        rm -rf $(UDEV_DIR)
40        $(GETSOURCE) $(UDEV_URL)/$(UDEV_TARBALL) $(SRC_DIR)
41        cd $(SRC_DIR) && tar -xvjf $(UDEV_TARBALL)
42        touch $@
43
44.PHONY: udev_clean
45udev_clean: $(UDEV_DIR).clean
46
47$(UDEV_DIR).clean: initrd_clean
48        rm -rf $(UDEV_DIR)*
Note: See TracBrowser for help on using the repository browser.