diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | arch/arm/boot/Makefile | 23 | ||||
| -rw-r--r-- | arch/avr32/boot/images/Makefile | 9 | ||||
| -rw-r--r-- | arch/blackfin/boot/Makefile | 19 | ||||
| -rw-r--r-- | arch/microblaze/boot/Makefile | 10 | ||||
| -rw-r--r-- | arch/sh/boot/Makefile | 8 | ||||
| -rw-r--r-- | arch/sparc/boot/Makefile | 9 | ||||
| -rw-r--r-- | arch/unicore32/boot/Makefile | 12 | ||||
| -rw-r--r-- | scripts/Kbuild.include | 2 | ||||
| -rw-r--r-- | scripts/Makefile.build | 2 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 24 | ||||
| -rw-r--r-- | scripts/dtc/dtc.c | 5 | ||||
| -rw-r--r-- | scripts/dtc/flattree.c | 2 | ||||
| -rw-r--r-- | scripts/headers_check.pl | 38 | ||||
| -rw-r--r-- | scripts/mod/modpost.c | 2 | ||||
| -rwxr-xr-x | scripts/setlocalversion | 3 |
16 files changed, 98 insertions, 72 deletions
| @@ -1170,7 +1170,7 @@ MRPROPER_FILES += .config .config.old .version .old_version \ | |||
| 1170 | # | 1170 | # |
| 1171 | clean: rm-dirs := $(CLEAN_DIRS) | 1171 | clean: rm-dirs := $(CLEAN_DIRS) |
| 1172 | clean: rm-files := $(CLEAN_FILES) | 1172 | clean: rm-files := $(CLEAN_FILES) |
| 1173 | clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation) | 1173 | clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) |
| 1174 | 1174 | ||
| 1175 | PHONY += $(clean-dirs) clean archclean | 1175 | PHONY += $(clean-dirs) clean archclean |
| 1176 | $(clean-dirs): | 1176 | $(clean-dirs): |
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index fc871e719aae..c877087d2000 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile | |||
| @@ -11,8 +11,6 @@ | |||
| 11 | # Copyright (C) 1995-2002 Russell King | 11 | # Copyright (C) 1995-2002 Russell King |
| 12 | # | 12 | # |
| 13 | 13 | ||
| 14 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 15 | |||
| 16 | ifneq ($(MACHINE),) | 14 | ifneq ($(MACHINE),) |
| 17 | include $(srctree)/$(MACHINE)/Makefile.boot | 15 | include $(srctree)/$(MACHINE)/Makefile.boot |
| 18 | endif | 16 | endif |
| @@ -69,22 +67,19 @@ $(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y)) | |||
| 69 | 67 | ||
| 70 | clean-files := *.dtb | 68 | clean-files := *.dtb |
| 71 | 69 | ||
| 72 | quiet_cmd_uimage = UIMAGE $@ | 70 | ifneq ($(LOADADDR),) |
| 73 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ | 71 | UIMAGE_LOADADDR=$(LOADADDR) |
| 74 | -C none -a $(LOADADDR) -e $(STARTADDR) \ | ||
| 75 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | ||
| 76 | |||
| 77 | ifeq ($(CONFIG_ZBOOT_ROM),y) | ||
| 78 | $(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT) | ||
| 79 | else | 72 | else |
| 80 | $(obj)/uImage: LOADADDR=$(ZRELADDR) | 73 | ifeq ($(CONFIG_ZBOOT_ROM),y) |
| 74 | UIMAGE_LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT) | ||
| 75 | else | ||
| 76 | UIMAGE_LOADADDR=$(ZRELADDR) | ||
| 77 | endif | ||
| 81 | endif | 78 | endif |
| 82 | 79 | ||
| 83 | $(obj)/uImage: STARTADDR=$(LOADADDR) | ||
| 84 | |||
| 85 | check_for_multiple_loadaddr = \ | 80 | check_for_multiple_loadaddr = \ |
| 86 | if [ $(words $(LOADADDR)) -gt 1 ]; then \ | 81 | if [ $(words $(UIMAGE_LOADADDR)) -gt 1 ]; then \ |
| 87 | echo 'multiple load addresses: $(LOADADDR)'; \ | 82 | echo 'multiple load addresses: $(UIMAGE_LOADADDR)'; \ |
| 88 | echo 'This is incompatible with uImages'; \ | 83 | echo 'This is incompatible with uImages'; \ |
| 89 | echo 'Specify LOADADDR on the commandline to build an uImage'; \ | 84 | echo 'Specify LOADADDR on the commandline to build an uImage'; \ |
| 90 | false; \ | 85 | false; \ |
diff --git a/arch/avr32/boot/images/Makefile b/arch/avr32/boot/images/Makefile index 1848bf0d7f62..2a3b53978a3b 100644 --- a/arch/avr32/boot/images/Makefile +++ b/arch/avr32/boot/images/Makefile | |||
| @@ -6,8 +6,6 @@ | |||
| 6 | # for more details. | 6 | # for more details. |
| 7 | # | 7 | # |
| 8 | 8 | ||
| 9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 10 | |||
| 11 | extra-y := vmlinux.bin vmlinux.gz | 9 | extra-y := vmlinux.bin vmlinux.gz |
| 12 | 10 | ||
| 13 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id | 11 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id |
| @@ -17,10 +15,9 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
| 17 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE | 15 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE |
| 18 | $(call if_changed,gzip) | 16 | $(call if_changed,gzip) |
| 19 | 17 | ||
| 20 | quiet_cmd_uimage = UIMAGE $@ | 18 | UIMAGE_LOADADDR = $(CONFIG_LOAD_ADDRESS) |
| 21 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A avr32 -O linux -T kernel \ | 19 | UIMAGE_ENTRYADDR = $(CONFIG_ENTRY_ADDRESS) |
| 22 | -C gzip -a $(CONFIG_LOAD_ADDRESS) -e $(CONFIG_ENTRY_ADDRESS) \ | 20 | UIMAGE_COMPRESSION = gzip |
| 23 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | ||
| 24 | 21 | ||
| 25 | targets += uImage uImage.srec | 22 | targets += uImage uImage.srec |
| 26 | $(obj)/uImage: $(obj)/vmlinux.gz | 23 | $(obj)/uImage: $(obj)/vmlinux.gz |
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile index 0a49279e3428..f7d27d50d02c 100644 --- a/arch/blackfin/boot/Makefile +++ b/arch/blackfin/boot/Makefile | |||
| @@ -6,20 +6,17 @@ | |||
| 6 | # for more details. | 6 | # for more details. |
| 7 | # | 7 | # |
| 8 | 8 | ||
| 9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 10 | |||
| 11 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip | 9 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip |
| 12 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip | 10 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip |
| 13 | 11 | ||
| 14 | UIMAGE_OPTS-y := | 12 | ifeq ($(CONFIG_RAMKERNEL),y) |
| 15 | UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) | 13 | UIMAGE_LOADADDR = $(CONFIG_BOOT_LOAD) |
| 16 | UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x | 14 | else # CONFIG_ROMKERNEL must be set |
| 17 | 15 | UIMAGE_LOADADDR = $(CONFIG_ROM_BASE) | |
| 18 | quiet_cmd_uimage = UIMAGE $@ | 16 | endif |
| 19 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ | 17 | UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') |
| 20 | -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \ | 18 | UIMAGE_NAME = '$(CPU_REV)-$(KERNELRELEASE)' |
| 21 | -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ | 19 | UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -x |
| 22 | $(UIMAGE_OPTS-y) -d $< $@ | ||
| 23 | 20 | ||
| 24 | $(obj)/vmlinux.bin: vmlinux FORCE | 21 | $(obj)/vmlinux.bin: vmlinux FORCE |
| 25 | $(call if_changed,objcopy) | 22 | $(call if_changed,objcopy) |
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index 34940c828def..fa83ea497db7 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | # arch/microblaze/boot/Makefile | 2 | # arch/microblaze/boot/Makefile |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 6 | |||
| 7 | obj-y += linked_dtb.o | 5 | obj-y += linked_dtb.o |
| 8 | 6 | ||
| 9 | targets := linux.bin linux.bin.gz simpleImage.% | 7 | targets := linux.bin linux.bin.gz simpleImage.% |
| @@ -35,11 +33,9 @@ quiet_cmd_strip = STRIP $@ | |||
| 35 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ | 33 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ |
| 36 | -K _fdt_start vmlinux -o $@ | 34 | -K _fdt_start vmlinux -o $@ |
| 37 | 35 | ||
| 38 | quiet_cmd_uimage = UIMAGE $@.ub | 36 | UIMAGE_IN = $@ |
| 39 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A microblaze -O linux -T kernel \ | 37 | UIMAGE_OUT = $@.ub |
| 40 | -C none -n 'Linux-$(KERNELRELEASE)' \ | 38 | UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) |
| 41 | -a $(CONFIG_KERNEL_BASE_ADDR) -e $(CONFIG_KERNEL_BASE_ADDR) \ | ||
| 42 | -d $@ $@.ub | ||
| 43 | 39 | ||
| 44 | $(obj)/simpleImage.%: vmlinux FORCE | 40 | $(obj)/simpleImage.%: vmlinux FORCE |
| 45 | $(call if_changed,cp,.unstrip) | 41 | $(call if_changed,cp,.unstrip) |
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index e4ea31a62c55..58592dfa5cb6 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
| @@ -8,8 +8,6 @@ | |||
| 8 | # Copyright (C) 1999 Stuart Menefy | 8 | # Copyright (C) 1999 Stuart Menefy |
| 9 | # | 9 | # |
| 10 | 10 | ||
| 11 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 12 | |||
| 13 | # | 11 | # |
| 14 | # Assign safe dummy values if these variables are not defined, | 12 | # Assign safe dummy values if these variables are not defined, |
| 15 | # in order to suppress error message. | 13 | # in order to suppress error message. |
| @@ -61,10 +59,8 @@ KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ | |||
| 61 | $(KERNEL_MEMORY) + \ | 59 | $(KERNEL_MEMORY) + \ |
| 62 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') | 60 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') |
| 63 | 61 | ||
| 64 | quiet_cmd_uimage = UIMAGE $@ | 62 | UIMAGE_LOADADDR = $(KERNEL_LOAD) |
| 65 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ | 63 | UIMAGE_ENTRYADDR = $(KERNEL_ENTRY) |
| 66 | -C $(2) -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \ | ||
| 67 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | ||
| 68 | 64 | ||
| 69 | $(obj)/vmlinux.bin: vmlinux FORCE | 65 | $(obj)/vmlinux.bin: vmlinux FORCE |
| 70 | $(call if_changed,objcopy) | 66 | $(call if_changed,objcopy) |
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 9205416b1e67..d56d199c1aa8 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | 5 | ||
| 6 | ROOT_IMG := /usr/src/root.img | 6 | ROOT_IMG := /usr/src/root.img |
| 7 | ELFTOAOUT := elftoaout | 7 | ELFTOAOUT := elftoaout |
| 8 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 9 | 8 | ||
| 10 | hostprogs-y := piggyback btfixupprep | 9 | hostprogs-y := piggyback btfixupprep |
| 11 | targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout | 10 | targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout |
| @@ -92,11 +91,9 @@ $(obj)/image.bin: $(obj)/image FORCE | |||
| 92 | $(obj)/image.gz: $(obj)/image.bin | 91 | $(obj)/image.gz: $(obj)/image.bin |
| 93 | $(call if_changed,gzip) | 92 | $(call if_changed,gzip) |
| 94 | 93 | ||
| 95 | quiet_cmd_uimage = UIMAGE $@ | 94 | UIMAGE_LOADADDR = $(CONFIG_UBOOT_LOAD_ADDR) |
| 96 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sparc -O linux -T kernel \ | 95 | UIMAGE_ENTRYADDR = $(CONFIG_UBOOT_ENTRY_ADDR) |
| 97 | -C gzip -a $(CONFIG_UBOOT_LOAD_ADDR) \ | 96 | UIMAGE_COMPRESSION = gzip |
| 98 | -e $(CONFIG_UBOOT_ENTRY_ADDR) -n 'Linux-$(KERNELRELEASE)' \ | ||
| 99 | -d $< $@ | ||
| 100 | 97 | ||
| 101 | quiet_cmd_uimage.o = UIMAGE.O $@ | 98 | quiet_cmd_uimage.o = UIMAGE.O $@ |
| 102 | cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \ | 99 | cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \ |
diff --git a/arch/unicore32/boot/Makefile b/arch/unicore32/boot/Makefile index 79e5f88845d9..ec7fb70b412b 100644 --- a/arch/unicore32/boot/Makefile +++ b/arch/unicore32/boot/Makefile | |||
| @@ -11,8 +11,6 @@ | |||
| 11 | # Copyright (C) 2001~2010 GUAN Xue-tao | 11 | # Copyright (C) 2001~2010 GUAN Xue-tao |
| 12 | # | 12 | # |
| 13 | 13 | ||
| 14 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 15 | |||
| 16 | targets := Image zImage uImage | 14 | targets := Image zImage uImage |
| 17 | 15 | ||
| 18 | $(obj)/Image: vmlinux FORCE | 16 | $(obj)/Image: vmlinux FORCE |
| @@ -26,14 +24,8 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | |||
| 26 | $(call if_changed,objcopy) | 24 | $(call if_changed,objcopy) |
| 27 | @echo ' Kernel: $@ is ready' | 25 | @echo ' Kernel: $@ is ready' |
| 28 | 26 | ||
| 29 | quiet_cmd_uimage = UIMAGE $@ | 27 | UIMAGE_ARCH = unicore |
| 30 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A unicore -O linux -T kernel \ | 28 | UIMAGE_LOADADDR = 0x0 |
| 31 | -C none -a $(LOADADDR) -e $(STARTADDR) \ | ||
| 32 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | ||
| 33 | |||
| 34 | $(obj)/uImage: LOADADDR=0x0 | ||
| 35 | |||
| 36 | $(obj)/uImage: STARTADDR=$(LOADADDR) | ||
| 37 | 29 | ||
| 38 | $(obj)/uImage: $(obj)/zImage FORCE | 30 | $(obj)/uImage: $(obj)/zImage FORCE |
| 39 | $(call if_changed,uimage) | 31 | $(call if_changed,uimage) |
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index d897278b1f97..6a3ee981931d 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -104,7 +104,7 @@ as-option = $(call try-run,\ | |||
| 104 | # Usage: cflags-y += $(call as-instr,instr,option1,option2) | 104 | # Usage: cflags-y += $(call as-instr,instr,option1,option2) |
| 105 | 105 | ||
| 106 | as-instr = $(call try-run,\ | 106 | as-instr = $(call try-run,\ |
| 107 | /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) | 107 | printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) |
| 108 | 108 | ||
| 109 | # cc-option | 109 | # cc-option |
| 110 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) | 110 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d2b366c16b64..ff1720d28d0c 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -69,6 +69,7 @@ warning-1 += -Wmissing-prototypes | |||
| 69 | warning-1 += -Wold-style-definition | 69 | warning-1 += -Wold-style-definition |
| 70 | warning-1 += $(call cc-option, -Wmissing-include-dirs) | 70 | warning-1 += $(call cc-option, -Wmissing-include-dirs) |
| 71 | warning-1 += $(call cc-option, -Wunused-but-set-variable) | 71 | warning-1 += $(call cc-option, -Wunused-but-set-variable) |
| 72 | warning-1 += $(call cc-disable-warning, missing-field-initializers) | ||
| 72 | 73 | ||
| 73 | warning-2 := -Waggregate-return | 74 | warning-2 := -Waggregate-return |
| 74 | warning-2 += -Wcast-align | 75 | warning-2 += -Wcast-align |
| @@ -76,6 +77,7 @@ warning-2 += -Wdisabled-optimization | |||
| 76 | warning-2 += -Wnested-externs | 77 | warning-2 += -Wnested-externs |
| 77 | warning-2 += -Wshadow | 78 | warning-2 += -Wshadow |
| 78 | warning-2 += $(call cc-option, -Wlogical-op) | 79 | warning-2 += $(call cc-option, -Wlogical-op) |
| 80 | warning-2 += $(call cc-option, -Wmissing-field-initializers) | ||
| 79 | 81 | ||
| 80 | warning-3 := -Wbad-function-cast | 82 | warning-3 := -Wbad-function-cast |
| 81 | warning-3 += -Wcast-qual | 83 | warning-3 += -Wcast-qual |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 00c368c6e996..0be6f110cce7 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -304,6 +304,30 @@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ | |||
| 304 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ | 304 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ |
| 305 | (rm -f $@ ; false) | 305 | (rm -f $@ ; false) |
| 306 | 306 | ||
| 307 | # U-Boot mkimage | ||
| 308 | # --------------------------------------------------------------------------- | ||
| 309 | |||
| 310 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
| 311 | |||
| 312 | # SRCARCH just happens to match slightly more than ARCH (on sparc), so reduces | ||
| 313 | # the number of overrides in arch makefiles | ||
| 314 | UIMAGE_ARCH ?= $(SRCARCH) | ||
| 315 | UIMAGE_COMPRESSION ?= $(if $(2),$(2),none) | ||
| 316 | UIMAGE_OPTS-y ?= | ||
| 317 | UIMAGE_TYPE ?= kernel | ||
| 318 | UIMAGE_LOADADDR ?= arch_must_set_this | ||
| 319 | UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR) | ||
| 320 | UIMAGE_NAME ?= 'Linux-$(KERNELRELEASE)' | ||
| 321 | UIMAGE_IN ?= $< | ||
| 322 | UIMAGE_OUT ?= $@ | ||
| 323 | |||
| 324 | quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT) | ||
| 325 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \ | ||
| 326 | -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \ | ||
| 327 | -T $(UIMAGE_TYPE) \ | ||
| 328 | -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \ | ||
| 329 | -n $(UIMAGE_NAME) -d $(UIMAGE_IN) $(UIMAGE_OUT) | ||
| 330 | |||
| 307 | # XZ | 331 | # XZ |
| 308 | # --------------------------------------------------------------------------- | 332 | # --------------------------------------------------------------------------- |
| 309 | # Use xzkern to compress the kernel image and xzmisc to compress other things. | 333 | # Use xzkern to compress the kernel image and xzmisc to compress other things. |
diff --git a/scripts/dtc/dtc.c b/scripts/dtc/dtc.c index 451c92d31b19..2ef5e2e3dd38 100644 --- a/scripts/dtc/dtc.c +++ b/scripts/dtc/dtc.c | |||
| @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) | |||
| 101 | const char *outform = "dts"; | 101 | const char *outform = "dts"; |
| 102 | const char *outname = "-"; | 102 | const char *outname = "-"; |
| 103 | const char *depname = NULL; | 103 | const char *depname = NULL; |
| 104 | int force = 0, check = 0, sort = 0; | 104 | int force = 0, sort = 0; |
| 105 | const char *arg; | 105 | const char *arg; |
| 106 | int opt; | 106 | int opt; |
| 107 | FILE *outf = NULL; | 107 | FILE *outf = NULL; |
| @@ -143,9 +143,6 @@ int main(int argc, char *argv[]) | |||
| 143 | case 'f': | 143 | case 'f': |
| 144 | force = 1; | 144 | force = 1; |
| 145 | break; | 145 | break; |
| 146 | case 'c': | ||
| 147 | check = 1; | ||
| 148 | break; | ||
| 149 | case 'q': | 146 | case 'q': |
| 150 | quiet++; | 147 | quiet++; |
| 151 | break; | 148 | break; |
diff --git a/scripts/dtc/flattree.c b/scripts/dtc/flattree.c index ead0332c87e1..28d0b2381df6 100644 --- a/scripts/dtc/flattree.c +++ b/scripts/dtc/flattree.c | |||
| @@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) | |||
| 697 | { | 697 | { |
| 698 | struct reserve_info *reservelist = NULL; | 698 | struct reserve_info *reservelist = NULL; |
| 699 | struct reserve_info *new; | 699 | struct reserve_info *new; |
| 700 | const char *p; | ||
| 701 | struct fdt_reserve_entry re; | 700 | struct fdt_reserve_entry re; |
| 702 | 701 | ||
| 703 | /* | 702 | /* |
| @@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) | |||
| 706 | * | 705 | * |
| 707 | * First pass, count entries. | 706 | * First pass, count entries. |
| 708 | */ | 707 | */ |
| 709 | p = inb->ptr; | ||
| 710 | while (1) { | 708 | while (1) { |
| 711 | flat_read_chunk(inb, &re, sizeof(re)); | 709 | flat_read_chunk(inb, &re, sizeof(re)); |
| 712 | re.address = fdt64_to_cpu(re.address); | 710 | re.address = fdt64_to_cpu(re.address); |
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 7957e7a5166a..64ac2380e4d5 100644 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | # 3) Check for leaked CONFIG_ symbols | 19 | # 3) Check for leaked CONFIG_ symbols |
| 20 | 20 | ||
| 21 | use strict; | 21 | use strict; |
| 22 | use File::Basename; | ||
| 22 | 23 | ||
| 23 | my ($dir, $arch, @files) = @ARGV; | 24 | my ($dir, $arch, @files) = @ARGV; |
| 24 | 25 | ||
| @@ -99,6 +100,39 @@ sub check_asm_types | |||
| 99 | } | 100 | } |
| 100 | 101 | ||
| 101 | my $linux_types; | 102 | my $linux_types; |
| 103 | my %import_stack = (); | ||
| 104 | sub check_include_typesh | ||
| 105 | { | ||
| 106 | my $path = $_[0]; | ||
| 107 | my $import_path; | ||
| 108 | |||
| 109 | my $fh; | ||
| 110 | my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path); | ||
| 111 | for my $possible ( @file_paths ) { | ||
| 112 | if (not $import_stack{$possible} and open($fh, '<', $possible)) { | ||
| 113 | $import_path = $possible; | ||
| 114 | $import_stack{$import_path} = 1; | ||
| 115 | last; | ||
| 116 | } | ||
| 117 | } | ||
| 118 | if (eof $fh) { | ||
| 119 | return; | ||
| 120 | } | ||
| 121 | |||
| 122 | my $line; | ||
| 123 | while ($line = <$fh>) { | ||
| 124 | if ($line =~ m/^\s*#\s*include\s+<linux\/types.h>/) { | ||
| 125 | $linux_types = 1; | ||
| 126 | last; | ||
| 127 | } | ||
| 128 | if (my $included = ($line =~ /^\s*#\s*include\s+[<"](\S+)[>"]/)[0]) { | ||
| 129 | check_include_typesh($included); | ||
| 130 | } | ||
| 131 | } | ||
| 132 | close $fh; | ||
| 133 | delete $import_stack{$import_path}; | ||
| 134 | } | ||
| 135 | |||
| 102 | sub check_sizetypes | 136 | sub check_sizetypes |
| 103 | { | 137 | { |
| 104 | if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) { | 138 | if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) { |
| @@ -113,6 +147,9 @@ sub check_sizetypes | |||
| 113 | $linux_types = 1; | 147 | $linux_types = 1; |
| 114 | return; | 148 | return; |
| 115 | } | 149 | } |
| 150 | if (my $included = ($line =~ /^\s*#\s*include\s+[<"](\S+)[>"]/)[0]) { | ||
| 151 | check_include_typesh($included); | ||
| 152 | } | ||
| 116 | if ($line =~ m/__[us](8|16|32|64)\b/) { | 153 | if ($line =~ m/__[us](8|16|32|64)\b/) { |
| 117 | printf STDERR "$filename:$lineno: " . | 154 | printf STDERR "$filename:$lineno: " . |
| 118 | "found __[us]{8,16,32,64} type " . | 155 | "found __[us]{8,16,32,64} type " . |
| @@ -122,4 +159,3 @@ sub check_sizetypes | |||
| 122 | #$ret = 1; | 159 | #$ret = 1; |
| 123 | } | 160 | } |
| 124 | } | 161 | } |
| 125 | |||
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 9adb667dd31a..3f01fd908730 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
| @@ -849,7 +849,7 @@ static void check_section(const char *modname, struct elf_info *elf, | |||
| 849 | 849 | ||
| 850 | #define ALL_INIT_DATA_SECTIONS \ | 850 | #define ALL_INIT_DATA_SECTIONS \ |
| 851 | ".init.setup$", ".init.rodata$", \ | 851 | ".init.setup$", ".init.rodata$", \ |
| 852 | ".devinit.rodata$", ".cpuinit.rodata$", ".meminit.rodata$" \ | 852 | ".devinit.rodata$", ".cpuinit.rodata$", ".meminit.rodata$", \ |
| 853 | ".init.data$", ".devinit.data$", ".cpuinit.data$", ".meminit.data$" | 853 | ".init.data$", ".devinit.data$", ".cpuinit.data$", ".meminit.data$" |
| 854 | #define ALL_EXIT_DATA_SECTIONS \ | 854 | #define ALL_EXIT_DATA_SECTIONS \ |
| 855 | ".exit.data$", ".devexit.data$", ".cpuexit.data$", ".memexit.data$" | 855 | ".exit.data$", ".devexit.data$", ".cpuexit.data$", ".memexit.data$" |
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 4d403844e137..bd6dca8a0ab2 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion | |||
| @@ -75,8 +75,7 @@ scm_version() | |||
| 75 | [ -w . ] && git update-index --refresh --unmerged > /dev/null | 75 | [ -w . ] && git update-index --refresh --unmerged > /dev/null |
| 76 | 76 | ||
| 77 | # Check for uncommitted changes | 77 | # Check for uncommitted changes |
| 78 | if git diff-index --name-only HEAD | grep -v "^scripts/package" \ | 78 | if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then |
| 79 | | read dummy; then | ||
| 80 | printf '%s' -dirty | 79 | printf '%s' -dirty |
| 81 | fi | 80 | fi |
| 82 | 81 | ||
