mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Dillow <ddillow@idleaire.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Linux-Kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH 3/3] Auto checkout for kbuild
Date: Tue, 02 Mar 2004 13:40:11 -0500	[thread overview]
Message-ID: <1078252811.31306.27.camel@dillow.idleaire.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Cosmetic cleanups when checking out/cleaning files.
-- 
Dave Dillow <ddillow@idleaire.com>

[-- Attachment #2: autoget-cleanup.patch --]
[-- Type: text/plain, Size: 3351 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1506  -> 1.1507 
#	scripts/Makefile.clean	1.13    -> 1.15   
#	            Makefile	1.441   -> 1.443  
#	scripts/Makefile.build	1.42    -> 1.43   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/12/04	dave@thedillows.org	1.1507
# Make the build process a bit less verbose and a bit cleaner during a build
# from a "cleaned" repository.
# --------------------------------------------
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile	Tue Mar  2 13:33:25 2004
+++ b/Makefile	Tue Mar  2 13:33:25 2004
@@ -402,7 +402,11 @@
 
 endif
 
+ifeq ($(KBUILD_VERBOSE),1)
 include $(srctree)/arch/$(ARCH)/Makefile
+else
+-include $(srctree)/arch/$(ARCH)/Makefile
+endif
 
 # Let architecture Makefiles change CPPFLAGS if needed
 CFLAGS := $(CPPFLAGS) $(CFLAGS)
@@ -946,8 +950,14 @@
 ifeq ($(KBUILD_SRC),)
 
 # Command to use to perform actual pull of a file from the repository
-GET = get
-export GET
+GET	:= get
+GFLAGS	:=
+
+ifneq ($(KBUILD_VERBOSE),1)
+	GFLAGS += -q
+endif
+
+export GET GFLAGS
 
 # Need this rule so that getfiles will get the proper CFLAGS to complete
 # its dependency checkout
@@ -961,6 +971,7 @@
 kbuild_base_files += scripts/Makefile.modpost scripts/Makefile.modinst
 kbuild_base_files += scripts/Makefile.repo scripts/mkversion
 kbuild_base_files += scripts/getfiles scripts/mkcompile_h
+kbuild_base_files += scripts/Makefile.clean
 
 # These rules will ensure these files exist, or are pulled from the repository
 .PHONY: kbuild_files
@@ -992,7 +1003,11 @@
 endif # filter on nokconfig_targtes
 endif # ifeq ($(KBUILD_SRC),)
 
+ifeq ($(KBUILD_VERBOSE),1)
 include $(srctree)/scripts/Makefile.repo
+else
+-include $(srctree)/scripts/Makefile.repo
+endif
 
 
 # FIXME Should go into a make.lib or something 
diff -Nru a/scripts/Makefile.build b/scripts/Makefile.build
--- a/scripts/Makefile.build	Tue Mar  2 13:33:25 2004
+++ b/scripts/Makefile.build	Tue Mar  2 13:33:25 2004
@@ -10,9 +10,16 @@
 # Read .config if it exist, otherwise ignore
 -include .config
 
+ifeq ($(KBUILD_VERBOSE),1)
 include $(obj)/Makefile
-
 include scripts/Makefile.lib
+include scripts/Makefile.repo
+else
+-include $(obj)/Makefile
+-include scripts/Makefile.lib
+-include scripts/Makefile.repo
+endif
+
 
 ifneq ($(KBUILD_SRC),)
 # Create output directory if not already present
@@ -23,8 +30,6 @@
 _dummy := $(foreach d,$(obj-dirs), $(shell [ -d $(d) ] || mkdir -p $(d)))
 endif
 
-
-include scripts/Makefile.repo
 
 ifdef EXTRA_TARGETS
 $(warning kbuild: $(obj)/Makefile - Usage of EXTRA_TARGETS is obsolete in 2.6. Please fix!)
diff -Nru a/scripts/Makefile.clean b/scripts/Makefile.clean
--- a/scripts/Makefile.clean	Tue Mar  2 13:33:25 2004
+++ b/scripts/Makefile.clean	Tue Mar  2 13:33:25 2004
@@ -7,7 +7,13 @@
 .PHONY: __clean
 __clean:
 
+ifeq ($(KBUILD_VERBOSE),1)
 include $(obj)/Makefile
+include $(srctree)/scripts/Makefile.repo
+else
+-include $(obj)/Makefile
+-include $(srctree)/scripts/Makefile.repo
+endif
 
 # Figure out what we need to build from the various variables
 # ==========================================================================

                 reply	other threads:[~2004-03-02 18:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1078252811.31306.27.camel@dillow.idleaire.com \
    --to=ddillow@idleaire.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /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

all inboxes | Powered by JetHome®