the following patch was just integrated into master:
commit 00e82ca97042907951ee977ead2e93039ab1da6d
Author: Mathias Krause <mathias.krause(a)secunet.com>
Date: Tue Mar 6 13:26:48 2012 +0100
makefile: recreate version.h only when needed
Don't recreate version.h on each make invokation but only when needed, i.e.
when the make variables have changed. Also make version.h a prerequisite for
the object files to rebuild them when the version information changes.
Change-Id: I27a057be25902233ac0751db8061e9ad4cd50642
Signed-off-by: Mathias Krause <mathias.krause(a)secunet.com>
Build-Tested: build bot (Jenkins) at Wed Mar 7 16:46:48 2012, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Wed Mar 7 17:44:44 2012, giving +2
See http://review.coreboot.org/745 for details.
-gerrit
the following patch was just integrated into master:
commit 1b310177b04d265622ca220ce27f696b41fd786e
Author: Mathias Krause <mathias.krause(a)secunet.com>
Date: Tue Mar 6 13:14:47 2012 +0100
makefile: avoid unnecessary rebuilds
The make target libpayload is a phony target which makes filo and all
the object files get rebuild on every make invokation. Avoid this by
lifting the dependencies and rebuild, i.e. relink filo only when
libpayload has changed.
Also, when building libpayload as a prerequisite, use $(obj) as DESTDIR,
as the user might want to use a different build directory then $(src)/build.
Change-Id: Ifa42362ba1d8c88c9996d645314cfdbdf2994759
Signed-off-by: Mathias Krause <mathias.krause(a)secunet.com>
Build-Tested: build bot (Jenkins) at Wed Mar 7 16:48:17 2012, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Wed Mar 7 17:44:28 2012, giving +2
See http://review.coreboot.org/744 for details.
-gerrit
the following patch was just integrated into master:
commit 348f295d107eeabab00f80dbe371838a355b3e3d
Author: Mathias Krause <mathias.krause(a)secunet.com>
Date: Tue Mar 6 09:42:18 2012 +0100
makefile: create filo.map in separate step
Instead of copying files around and creating files make is not aware of,
use a dedicated target and rule to create filo.map. Also skip piping the
result through sort as nm has an option to sort the symbols.
Also drop the bogus dependency to libpayload as filo.elf is only the
striped version of filo.
Change-Id: If010b4ce269a47a99de06db16e0290c3fd90b559
Signed-off-by: Mathias Krause <mathias.krause(a)secunet.com>
Build-Tested: build bot (Jenkins) at Wed Mar 7 16:49:46 2012, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Wed Mar 7 17:44:12 2012, giving +2
See http://review.coreboot.org/743 for details.
-gerrit
Mathias Krause (mathias.krause(a)secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/743
-gerrit
commit 348f295d107eeabab00f80dbe371838a355b3e3d
Author: Mathias Krause <mathias.krause(a)secunet.com>
Date: Tue Mar 6 09:42:18 2012 +0100
makefile: create filo.map in separate step
Instead of copying files around and creating files make is not aware of,
use a dedicated target and rule to create filo.map. Also skip piping the
result through sort as nm has an option to sort the symbols.
Also drop the bogus dependency to libpayload as filo.elf is only the
striped version of filo.
Change-Id: If010b4ce269a47a99de06db16e0290c3fd90b559
Signed-off-by: Mathias Krause <mathias.krause(a)secunet.com>
---
Makefile | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 6603612..3461614 100644
--- a/Makefile
+++ b/Makefile
@@ -133,11 +133,9 @@ $(obj)/filo: $(OBJS) libpayload
printf " LD $(subst $(shell pwd)/,,$(@))\n"
$(LD) -N -T $(ARCHDIR-y)/ldscript -o $@ $(OBJS) $(LIBPAYLOAD) $(LIBGCC)
-$(TARGET): $(obj)/filo libpayload
- cp $(obj)/filo $@
- $(NM) $(obj)/filo | sort > $(obj)/filo.map
+$(TARGET): $(obj)/filo $(obj)/filo.map
printf " STRIP $(subst $(shell pwd)/,,$(@))\n"
- $(STRIP) -s $@
+ $(STRIP) -s $< -o $@
include util/kconfig/Makefile
@@ -153,6 +151,10 @@ $(obj)/%.S.o: $(src)/%.S
printf " AS $(subst $(shell pwd)/,,$(@))\n"
$(AS) $(ASFLAGS) -o $@ $<
+$(obj)/%.map: $(obj)/%
+ printf " SYMS $(subst $(shell pwd)/,,$(@))\n"
+ $(NM) -n $< > $@
+
endif
$(obj)/version.h: FORCE
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/771
-gerrit
commit cc2b3173570a49dae0c780c1e1b8d2e12a0f5975
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Mar 7 15:49:07 2012 +0100
lint: test that labels begin at start-of-line
Some attempt at enforcing style
Change-Id: Ibbfb86402ecc57e8db6c3857c8e0193085ed4fc2
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
util/lint/lint-004-style-labels | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/util/lint/lint-004-style-labels b/util/lint/lint-004-style-labels
new file mode 100755
index 0000000..31ad74e
--- /dev/null
+++ b/util/lint/lint-004-style-labels
@@ -0,0 +1,22 @@
+#!/bin/sh
+# This file is part of the coreboot project.
+#
+# Copyright (C) 2012 Patrick Georgi <patrick(a)georgi-clan.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# DESCR: Check that C labels begin at start-of-line
+
+LC_ALL=C export LC_ALL
+find src -name '*.[scS]' -exec grep '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' {} + |grep -v "[^a-z_]default:"