Author: jhuntwork
Date: 2005-07-18 06:18:47 -0600 (Mon, 18 Jul 2005)
New Revision: 371
Modified:
x86/trunk/packages/binutils/Makefile
x86/trunk/packages/gcc/Makefile
x86/trunk/packages/template/Makefile
x86/trunk/packages/wget/Makefile
x86/trunk/scripts/functions
Log:
Improved logging, improvments to some functions, updated template
Modified: x86/trunk/packages/binutils/Makefile
===================================================================
--- x86/trunk/packages/binutils/Makefile 2005-07-18 06:35:25 UTC (rev
370)
+++ x86/trunk/packages/binutils/Makefile 2005-07-18 12:18:47 UTC (rev
371)
@@ -28,7 +28,8 @@
# Configure commands below \/
#==============================================================================
@$(sep_dir)
- @../$(DIR)/configure --prefix=$(WD) --disable-nls >../$(DIR)[EMAIL
PROTECTED]
+ @../$(DIR)/configure --prefix=$(WD) --disable-nls >../$(DIR)[EMAIL
PROTECTED] \
+ 2>&1
#
#==Status Messages==========================================
#
@@ -37,7 +38,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -46,9 +47,9 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
- @make -C ld clean >>../$(DIR)[EMAIL PROTECTED]
- @make -C ld LIB_PATH=$(WD)/lib >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
+ @make -C ld clean >>../$(DIR)[EMAIL PROTECTED] 2>&1
+ @make -C ld LIB_PATH=$(WD)/lib >>../$(DIR)[EMAIL PROTECTED] 2&>1
#
#==Status Messages==========================================
#
@@ -80,7 +81,7 @@
#==============================================================================
@$(sep_dir)
@../$(DIR)/configure --prefix=$(WD) --disable-nls \
- --enable-shared --with-lib-path=$(WD)/lib >../$(DIR)[EMAIL PROTECTED]
+ --enable-shared --with-lib-path=$(WD)/lib >../$(DIR)[EMAIL PROTECTED]
2>&1
#
#==Status Messages==========================================
#
@@ -89,7 +90,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -98,9 +99,9 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
- @make -C ld clean >>../$(DIR)[EMAIL PROTECTED]
- @make -C ld LIB_PATH=/usr/lib:/lib >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
+ @make -C ld clean >>../$(DIR)[EMAIL PROTECTED] 2>&1
+ @make -C ld LIB_PATH=/usr/lib:/lib >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
@@ -135,7 +136,8 @@
# Configure commands below \/
#==============================================================================
@$(sep_dir)
- @../$(DIR)/configure --prefix=/usr --enable-shared >../$(DIR)[EMAIL
PROTECTED]
+ @../$(DIR)/configure --prefix=/usr --enable-shared >../$(DIR)[EMAIL
PROTECTED] \
+ 2>&1
#
#==Status Messages==========================================
#
@@ -144,7 +146,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) tooldir=/usr >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) tooldir=/usr >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -153,7 +155,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make tooldir=/usr install >>../$(DIR)[EMAIL PROTECTED]
+ @make tooldir=/usr install >>../$(DIR)[EMAIL PROTECTED] 2>&1
@cp ../$(DIR)/include/libiberty.h /usr/include
#
Modified: x86/trunk/packages/gcc/Makefile
===================================================================
--- x86/trunk/packages/gcc/Makefile 2005-07-18 06:35:25 UTC (rev 370)
+++ x86/trunk/packages/gcc/Makefile 2005-07-18 12:18:47 UTC (rev 371)
@@ -51,7 +51,7 @@
@$(sep_dir)
@../$(DIR)/configure --prefix=$(WD) --libexecdir=$(WD)/lib \
--with-local-prefix=$(WD) --disable-nls --enable-shared \
- --enable-languages=c >../$(DIR)[EMAIL PROTECTED]
+ --enable-languages=c >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -60,7 +60,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) bootstrap >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) bootstrap >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -69,7 +69,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
ln -s gcc $(WD)/bin/cc
#
#==Status Messages==========================================
@@ -90,7 +90,7 @@
@../$(DIR)/configure --prefix=$(WD) --libexecdir=$(WD)/lib \
--with-local-prefix=$(WD) --enable-clocale=gnu --enable-shared \
--enable-threads=posix --enabel-__cxa_atexit --enable-languages=c,c++ \
- --disable-libstdcxx-pch >../$(DIR)[EMAIL PROTECTED]
+ --disable-libstdcxx-pch >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -99,7 +99,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -108,7 +108,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
@@ -133,7 +133,7 @@
@$(sep_dir)
@../$(DIR)/configure --prefix=/usr --libexecdir=/usr/lib \
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
- --enable-clocale=gnu --enable-languages=c,c++ >../$(DIR)[EMAIL
PROTECTED]
+ --enable-clocale=gnu --enable-languages=c,c++ >../$(DIR)[EMAIL
PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -142,7 +142,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -151,7 +151,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
@ln -s ../usr/bin/cpp /lib
@ln -s gcc /usr/bin/cc
#
Modified: x86/trunk/packages/template/Makefile
===================================================================
--- x86/trunk/packages/template/Makefile 2005-07-18 06:35:25 UTC (rev
370)
+++ x86/trunk/packages/template/Makefile 2005-07-18 12:18:47 UTC (rev
371)
@@ -5,8 +5,11 @@
VRS= [version-number]
DIR= $(NM)-$(VRS)
FILE= $(DIR).tar.bz2 # Use bz2 files wherever possible, especially for lfs-base
+SHA= [sha1sum of $(FILE)]
URL= $(HTTP)/$(NM)/$(FILE)
-PATCH= $(DIR)-some-1.patch
+
+PATCH1= $(DIR)-some-1.patch
+SHA1= [sha1sum of $(PATCH1)
PATCHURL= http://www.linuxfromscratch.org/patches/downloads/$(NM)/$(PATCH)
# Targets
@@ -15,13 +18,10 @@
include $(ROOT)/scripts/functions
$(FILE):
- @cd $(SRC) ; $(WGET) $(FILE)
- @ln -s $(SRC)/$(FILE) .
+ $(call download,$(FILE),$(URL),$(SHA))
-$(PATCH):
- @cd $(SRC) ; $(WGET) $(PATCH)
- @ln -s $(SRC)/$(PATCH) .
-
+$(PATCH1):
+ $(call download,$(PATCH1),$(URL1),$(SHA1))
stage1: Makefile $(FILE)
@$(std_build) # See the scripts/functions file for functions like this
@@ -32,7 +32,8 @@
#==============================================================================
# Configure commands below \/
#==============================================================================
- @./configure --prefix=$(WD) >../$(DIR)[EMAIL PROTECTED]
+ @$(sep_dir) # Simple function to create a separate build directory
+ @./configure --prefix=$(WD) >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -41,7 +42,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -50,7 +51,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -78,7 +79,7 @@
# @chroot "$(MP)" $(chenv-blfs) \
'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
-stage2: Makefile $(FILE)
+stage2: Makefile $(FILE) $(PATCH1)
@$(std_build)
compile-stage2:
@@ -86,7 +87,8 @@
#==============================================================================
# Configure commands below \/
#==============================================================================
- @./configure --prefix=/usr >../$(DIR)[EMAIL PROTECTED]
+ @patch -Np1 -i ../$(PATCH1)
+ @./configure --prefix=/usr >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -95,7 +97,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -104,7 +106,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
Modified: x86/trunk/packages/wget/Makefile
===================================================================
--- x86/trunk/packages/wget/Makefile 2005-07-18 06:35:25 UTC (rev 370)
+++ x86/trunk/packages/wget/Makefile 2005-07-18 12:18:47 UTC (rev 371)
@@ -25,7 +25,7 @@
# Configure commands below \/
#==============================================================================
@./configure --prefix=$(WD) --libdir=$(WD)/lib --without-ssl \
- --enable-static --disable-shared >../$(DIR)[EMAIL PROTECTED]
+ --enable-static --disable-shared >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -34,7 +34,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -43,7 +43,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -61,7 +61,7 @@
#==============================================================================
# Configure commands below \/
#==============================================================================
- @./configure --prefix=/usr --with-ssl >../$(DIR)[EMAIL PROTECTED]
+ @./configure --prefix=/usr --with-ssl >../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages==========================================
#
@@ -70,7 +70,7 @@
#==============================================================================
# Make commands below \/
#==============================================================================
- @make $(PM) >>../$(DIR)[EMAIL PROTECTED]
+ @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
@@ -79,7 +79,7 @@
#==============================================================================
# Install commands below \/
#==============================================================================
- @make install >>../$(DIR)[EMAIL PROTECTED]
+ @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
#
#==Status Messages===========================================
#
Modified: x86/trunk/scripts/functions
===================================================================
--- x86/trunk/scripts/functions 2005-07-18 06:35:25 UTC (rev 370)
+++ x86/trunk/scripts/functions 2005-07-18 12:18:47 UTC (rev 371)
@@ -30,9 +30,9 @@
# This takes the form of 'download [filename] [url] [sha1sum]'
define download
@cd $(SRC) ; if [ ! -f $(1) ] ; then $(WGET) $(2) ; \
- elif ! echo "$(3) $(SRC)/$(1)" | sha1sum -c - >/dev/null ; then \
+ elif ! echo "$(3) $(SRC)/$(1)" | sha1sum -c - >/dev/null 2>/dev/null
; then \
$(WGET) -c $(2) ; fi
- @if echo "$(3) $(SRC)/$(1)" | sha1sum -c - >/dev/null ; then \
+ @if echo "$(3) $(SRC)/$(1)" | sha1sum -c - >/dev/null 2/dev/null ;
then \
echo $(BRW)sha1sum check on $(SRC)/$(1): $(GREEN)[ OK ]$(WHITE); \
else echo $(BRW)sha1sum check on $(SRC)/$(1): $(RED)[ FAILED
]$(WHITE); fi
@ln -s $(SRC)/$(1) .
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page