Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/udev
Date: Mon, 13 Aug 2007 23:16:10 -0700 (PDT)	[thread overview]
Message-ID: <20070814061610.2E279A6811@busybox.net> (raw)

Author: ulf
Date: 2007-08-13 23:16:08 -0700 (Mon, 13 Aug 2007)
New Revision: 19497

Log:
Change udev target from udev to udevd. Add .PHONY targets. Rearrange targets

Modified:
   trunk/buildroot/package/udev/udev.mk


Changeset:
Modified: trunk/buildroot/package/udev/udev.mk
===================================================================
--- trunk/buildroot/package/udev/udev.mk	2007-08-13 21:30:02 UTC (rev 19496)
+++ trunk/buildroot/package/udev/udev.mk	2007-08-14 06:16:08 UTC (rev 19497)
@@ -9,7 +9,7 @@
 UDEV_CAT:=$(BZCAT)
 UDEV_DIR:=$(BUILD_DIR)/udev-$(UDEV_VERSION)
 UDEV_TARGET_BINARY:=sbin/udevd
-UDEV_BINARY:=udev
+UDEV_BINARY:=udevd
 
 # 094 had _GNU_SOURCE set
 BR2_UDEV_CFLAGS:= -D_GNU_SOURCE $(TARGET_CFLAGS)
@@ -17,15 +17,12 @@
 BR2_UDEV_CFLAGS+=-U_FILE_OFFSET_BITS
 endif
 
-
 # UDEV_ROOT is /dev so we can replace devfs, not /udev for experiments
 UDEV_ROOT:=/dev
 
 $(DL_DIR)/$(UDEV_SOURCE):
 	 $(WGET) -P $(DL_DIR) $(UDEV_SITE)/$(UDEV_SOURCE)
 
-udev-source: $(DL_DIR)/$(UDEV_SOURCE)
-
 $(UDEV_DIR)/.unpacked: $(DL_DIR)/$(UDEV_SOURCE)
 	$(UDEV_CAT) $(DL_DIR)/$(UDEV_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
 	toolchain/patch-kernel.sh $(UDEV_DIR) package/udev \*.patch
@@ -36,10 +33,10 @@
 		CFLAGS="$(BR2_UDEV_CFLAGS)" \
 		USE_LOG=false USE_SELINUX=false \
 		udevdir=$(UDEV_ROOT) -C $(UDEV_DIR)
-	touch -c $(UDEV_DIR)/$(UDEV_BINARY)
+	touch -c $@
 
 $(TARGET_DIR)/$(UDEV_TARGET_BINARY): $(UDEV_DIR)/$(UDEV_BINARY)
-	-mkdir $(TARGET_DIR)/sys
+	-mkdir -p $(TARGET_DIR)/sys
 	$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(TARGET_DIR) \
 		CFLAGS="$(BR2_UDEV_CFLAGS)" \
 		LDFLAGS="-warn-common" \
@@ -56,8 +53,25 @@
 	rm -f $(TARGET_DIR)/usr/bin/udevtest
 endif
 
+#####################################################################
+.PHONY:	udev-source udev udev-clean udev-dirclean
+
 udev: uclibc $(TARGET_DIR)/$(UDEV_TARGET_BINARY)
 
+udev-source: $(DL_DIR)/$(UDEV_SOURCE)
+
+udev-clean: $(UDEV_CLEAN_DEPS)
+	rm -f $(TARGET_DIR)/etc/init.d/S10udev $(TARGET_DIR)/sbin/udev*
+	rm -f $(TARGET_DIR)/usr/sbin/udevmonitor $(TARGET_DIR)/usr/bin/udev*
+	rmdir $(TARGET_DIR)/sys
+	-$(MAKE) -C $(UDEV_DIR) clean
+
+udev-dirclean: $(UDEV_DIRCLEAN_DEPS)
+	rm -rf $(UDEV_DIR)
+
+#####################################################################
+.PHONY:	 udev-volume_id udev-volume_id-clean
+
 ifeq ($(strip $(BR2_PACKAGE_UDEV_VOLUME_ID)),y)
 $(STAGING_DIR)/usr/lib/libvolume_id.so.0.72.0:
 	$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
@@ -74,7 +88,7 @@
 	-ln -sf libvolume_id.so.0.72.0 $(TARGET_DIR)/usr/lib/libvolume_id.so.0
 	$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libvolume_id.so.0.72.0
 
-udev-volume_id: udev $(TARGET_DIR)/lib/udev/vol_id
+udev-volume_id: udev $(TARGET_DIR)/lib/udev/vol_id udev-volume_id-dirclean
 
 udev-volume_id-clean:
 	rm -f $(STAGING_DIR)/usr/include/libvolume_id.h
@@ -90,6 +104,9 @@
 UDEV_DIRCLEAN_DEPS+=udev-volume_id-dirclean
 endif
 
+#####################################################################
+.PHONY:	udev-scsi_id udev-scsi_id-clean udev-scsi_id-dirclean
+
 ifeq ($(strip $(BR2_PACKAGE_UDEV_SCSI_ID)),y)
 $(TARGET_DIR)/lib/udev/scsi_id: $(STAGING_DIR)/usr/lib/libvolume_id.so.0.72.0
 	$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
@@ -115,15 +132,6 @@
 UDEV_DIRCLEAN_DEPS+=udev-scsi_id-dirclean
 endif
 
-udev-clean: $(UDEV_CLEAN_DEPS)
-	rm -f $(TARGET_DIR)/etc/init.d/S10udev $(TARGET_DIR)/sbin/udev*
-	rm -f $(TARGET_DIR)/usr/sbin/udevmonitor $(TARGET_DIR)/usr/bin/udev*
-	rmdir $(TARGET_DIR)/sys
-	-$(MAKE) -C $(UDEV_DIR) clean
-
-udev-dirclean: $(UDEV_DIRCLEAN_DEPS)
-	rm -rf $(UDEV_DIR)
-
 #############################################################
 #
 # Toplevel Makefile options

             reply	other threads:[~2007-08-14  6:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14  6:16 ulf at uclibc.org [this message]
2007-08-21 18:41 ` [Buildroot] recently added lot of .PHONY targets in package/*/*.mk Bernhard Fischer
2007-08-21 19:10   ` Ulf Samuelsson
  -- strict thread matches above, loose matches on Subject: below --
2009-02-13 19:58 [Buildroot] svn commit: trunk/buildroot/package/udev jacmet at uclibc.org
2008-12-08 13:48 jacmet at uclibc.org
2008-12-08 13:41 jacmet at uclibc.org
2008-12-08 13:41 jacmet at uclibc.org
2008-12-08 13:41 jacmet at uclibc.org
2008-04-06 10:35 nkukard at uclibc.org
2007-08-15 22:31 ulf at uclibc.org
2007-08-15 15:47 ulf at uclibc.org
2007-08-11 16:52 ulf at uclibc.org
2007-08-11 16:50 ulf at uclibc.org
2007-05-07  4:02 sjhill at uclibc.org
2007-01-19 16:23 aldot at uclibc.org
2007-01-14  0:59 sjhill at uclibc.org
2006-12-10 13:53 aldot at uclibc.org
2006-12-06  8:29 aldot at uclibc.org
2006-12-01 17:49 aldot at uclibc.org
2006-11-29 18:59 aldot at uclibc.org
2006-11-29 21:38 ` Petr Stetiar
2006-12-01 17:50   ` Bernhard Fischer
2006-12-01 20:47     ` ynezz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070814061610.2E279A6811@busybox.net \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox