2012-11-18 21:04:51

by Peter Foley

[permalink] [raw]
Subject: [PATCH 1/5] kbuild: remove deprecated use of defined in timeconst.pl

From: Peter Foley <[email protected]>

Fix this warning by removing a unneeded use of defined

TIMEC kernel/timeconst.h
defined(@array) is deprecated at kernel/timeconst.pl line 373.
(Maybe you should just omit the defined()?)

Signed-off-by: Peter Foley <[email protected]>
---
kernel/timeconst.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
index eb51d76..0461239 100644
--- a/kernel/timeconst.pl
+++ b/kernel/timeconst.pl
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
}

@val = @{$canned_values{$hz}};
- if (!defined(@val)) {
+ if (!@val) {
@val = compute_values($hz);
}
output($hz, @val);
--
1.8.0


2012-11-18 21:04:52

by Peter Foley

[permalink] [raw]
Subject: [PATCH 2/5] kbuild: silence rule for extra_certificates

From: Peter Foley <[email protected]>

Silence the touch extra_certificates command

Signed-off-by: Peter Foley <[email protected]>
---
kernel/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/Makefile b/kernel/Makefile
index 86e3285..18a0b61 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -137,7 +137,7 @@ ifeq ($(CONFIG_MODULE_SIG),y)
# Pull the signing certificate and any extra certificates into the kernel
#
extra_certificates:
- touch $@
+ @touch $@

kernel/modsign_pubkey.o: signing_key.x509 extra_certificates

--
1.8.0

2012-11-18 21:05:05

by Peter Foley

[permalink] [raw]
Subject: [PATCH 5/5] x86: add dummy rules to avoid 'nothing to be done' messages

From: Peter Foley <[email protected]>

Add do-nothing rules to archheaders and archscripts targets to avoid
'nothing to be done' messages.

Signed-off-by: Peter Foley <[email protected]>
---
arch/x86/syscalls/Makefile | 1 +
arch/x86/tools/Makefile | 1 +
2 files changed, 2 insertions(+)

diff --git a/arch/x86/syscalls/Makefile b/arch/x86/syscalls/Makefile
index f325af2..b6c923a 100644
--- a/arch/x86/syscalls/Makefile
+++ b/arch/x86/syscalls/Makefile
@@ -56,3 +56,4 @@ targets += $(uapisyshdr-y) $(syshdr-y)

all: $(addprefix $(uapi)/,$(uapisyshdr-y))
all: $(addprefix $(out)/,$(syshdr-y))
+ @:
diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile
index bae601f..dce567c 100644
--- a/arch/x86/tools/Makefile
+++ b/arch/x86/tools/Makefile
@@ -40,3 +40,4 @@ $(obj)/insn_sanity.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/ina
HOST_EXTRACFLAGS += -I$(srctree)/tools/include
hostprogs-y += relocs
relocs: $(obj)/relocs
+ @:
--
1.8.0

2012-11-18 21:05:39

by Peter Foley

[permalink] [raw]
Subject: [PATCH 4/5] silence 'arch/x86/realmode/rm/realmode.bin' is up to date message

From: Peter Foley <[email protected]>

Since realmode.bin is in $(always) the recursive make from the realmode
directory does not need to specify a specific target.
Remove the realmode.bin target to eliminate the 'up to date'
message.

Signed-off-by: Peter Foley <[email protected]>
---
arch/x86/realmode/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/realmode/Makefile b/arch/x86/realmode/Makefile
index 94f7fbe..08fe883 100644
--- a/arch/x86/realmode/Makefile
+++ b/arch/x86/realmode/Makefile
@@ -15,4 +15,4 @@ obj-y += rmpiggy.o
$(obj)/rmpiggy.o: $(obj)/rm/realmode.bin

$(obj)/rm/realmode.bin: FORCE
- $(Q)$(MAKE) $(build)=$(obj)/rm $@
+ $(Q)$(MAKE) $(build)=$(obj)/rm
--
1.8.0

2012-11-18 21:05:57

by Peter Foley

[permalink] [raw]
Subject: [PATCH 3/5] add eboot.o and efi_stub_$(BITS).o to $(targets)

From: Peter Foley <[email protected]>

eboot.o and efi_stub_$(BITS).o are not in $(targets) so they are rebuilt
every time make is invoked. Add them to $(targets) to prevent unnecessary
rebuilding of bzImage.

Signed-off-by: Peter Foley <[email protected]>
---
arch/x86/boot/compressed/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 8a84501..9d7a898 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -4,7 +4,7 @@
# create a compressed vmlinux image from the original vmlinux
#

-targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo head_$(BITS).o misc.o string.o cmdline.o early_serial_console.o piggy.o
+targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo head_$(BITS).o misc.o string.o cmdline.o early_serial_console.o piggy.o eboot.o efi_stub_$(BITS).o

KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2
KBUILD_CFLAGS += -fno-strict-aliasing -fPIC
--
1.8.0