blackfin: Do not generate unused files
cover blackfin: Do not generate unused files
Masahiro Yamada (2):
blackfin: Do not generate unused header bootrom-asm-offsets.h
blackfin: Do not generate unused binary init.elf
Makefile | 2 -- arch/blackfin/cpu/.gitignore | 4 --- arch/blackfin/cpu/Makefile | 16 ------------ arch/blackfin/cpu/bootrom-asm-offsets.awk | 41 ------------------------------ arch/blackfin/cpu/bootrom-asm-offsets.c.in | 12 --------- arch/blackfin/cpu/init.lds.S | 25 ------------------ 6 files changed, 100 deletions(-) delete mode 100644 arch/blackfin/cpu/.gitignore delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.awk delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.c.in delete mode 100644 arch/blackfin/cpu/init.lds.S
Signature · 1 line
1.8.3.2
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
---
Hello, Sonic
Could you check this patch?
It looks like arch/blckfin/cpu/bootrom-asm-offsets.h is always generated, but it is not included from anywhere. So, I am posting this patch.
If it is necessary, please stop me.
(And please tell me how to use it.)
Best Regards
Masahiro Yamada
Makefile | 1 - arch/blackfin/cpu/.gitignore | 2 -- arch/blackfin/cpu/Makefile | 10 -------- arch/blackfin/cpu/bootrom-asm-offsets.awk | 41 ------------------------------ arch/blackfin/cpu/bootrom-asm-offsets.c.in | 12 --------- 5 files changed, 66 deletions(-) delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.awk delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.c.in
Makefile +0 -1
@@ -794,7 +794,6 @@ clean: $(obj)board/matrix_vision/*/bootscript.img \ $(obj)board/voiceblue/eeprom \ $(obj)u-boot.lds \ - $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] \ $(obj)arch/blackfin/cpu/init.{lds,elf} @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)include/bmp_logo_data.h
arch/blackfin/cpu/.gitignore +0 -2
@@ -1,4 +1,2 @@ -bootrom-asm-offsets.[chs] - init.lds init.elf
arch/blackfin/cpu/Makefile +0 -10
@@ -23,16 +23,6 @@ obj-y += traps.o extra-y += check_initcode -extra-y += bootrom-asm-offsets.h -$(obj)bootrom-asm-offsets.c: bootrom-asm-offsets.c.in bootrom-asm-offsets.awk - echo '#include <asm/mach-common/bits/bootrom.h>' | $(CPP) $(CPPFLAGS) - | gawk -f ./bootrom-asm-offsets.awk > [email protected] - mv [email protected] $@ -$(obj)bootrom-asm-offsets.s: $(obj)bootrom-asm-offsets.c - $(CC) $(CFLAGS) -S $^ -o [email protected] - mv [email protected] $@ -$(obj)bootrom-asm-offsets.h: $(obj)bootrom-asm-offsets.s - sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" $^ > $@ - # make sure our initcode (which goes into LDR) does not # have relocs or external references $(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sections
arch/blackfin/cpu/bootrom-asm-offsets.awk deleted +0 -41
41 lines not on this page · raw message
arch/blackfin/cpu/bootrom-asm-offsets.c.in deleted +0 -12
@@ -1,12 +0,0 @@ -/* A little trick taken from the kernel asm-offsets.h where we convert - * the C structures automatically into a bunch of defines for use in - * the assembly files. - */ - -#include <linux/stddef.h> -#include <asm/mach-common/bits/bootrom.h> - -#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) -#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m)) - -int main(int argc, char * const argv[])
Signature · 1 line
1.8.3.2
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hi Masahiro,
It seems this header is never used any more. Applied, thanks.
Sonic
Quoted 141 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
Hello, Sonic
Could you check this patch?
It looks like
arch/blckfin/cpu/bootrom-asm-offsets.his always generated, but it is not included from anywhere. So, I am posting this patch.If it is necessary, please stop me.
(And please tell me how to use it.)Best Regards
Masahiro YamadaMakefile | 1 - arch/blackfin/cpu/.gitignore | 2 -- arch/blackfin/cpu/Makefile | 10 -------- arch/blackfin/cpu/bootrom-asm-offsets.awk | 41 ------------------------------ arch/blackfin/cpu/bootrom-asm-offsets.c.in | 12 --------- 5 files changed, 66 deletions(-) delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.awk delete mode 100644 arch/blackfin/cpu/bootrom-asm-offsets.c.inMakefile +0
-1@@ -794,7 +794,6 @@ clean: $(obj)board/matrix_vision/*/bootscript.img \ $(obj)board/voiceblue/eeprom \ $(obj)u-boot.lds \ - $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] \ $(obj)arch/blackfin/cpu/init.{lds,elf} @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)include/bmp_logo_data.harch/blackfin/cpu/.gitignore +0
-2@@ -1,4 +1,2 @@ -bootrom-asm-offsets.[chs] - init.lds init.elfarch/blackfin/cpu/Makefile +0
-10@@ -23,16 +23,6 @@ obj-y += traps.o extra-y += check_initcode -extra-y += bootrom-asm-offsets.h -$(obj)bootrom-asm-offsets.c: bootrom-asm-offsets.c.in bootrom-asm-offsets.awk - echo '#include <asm/mach-common/bits/bootrom.h>' | $(CPP) $(CPPFLAGS) - | gawk -f ./bootrom-asm-offsets.awk > [email protected] - mv [email protected] $@ -$(obj)bootrom-asm-offsets.s: $(obj)bootrom-asm-offsets.c - $(CC) $(CFLAGS) -S $^ -o [email protected] - mv [email protected] $@ -$(obj)bootrom-asm-offsets.h: $(obj)bootrom-asm-offsets.s - sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" $^ > $@ - # make sure our initcode (which goes into LDR) does not # have relocs or external references $(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sectionsarch/blackfin/cpu/bootrom-asm-offsets.awk deleted +0
-41@@ -1,41 +0,0 @@ -#!/usr/bin/gawk -f -BEGIN { - print "/* DO NOT EDIT: AUTOMATICALLY GENERATED" - print " * Input files: bootrom-asm-offsets.awk bootrom-asm-offsets.c.in" - print " * DO NOT EDIT: AUTOMATICALLY GENERATED" - print " */" - print "" - system("cat bootrom-asm-offsets.c.in") - print "{" -} - -{ - /* find a structure definition */ - if ($0 ~ /typedef struct .* {/) { - delete members; - i = 0; - - /* extract each member of the structure */ - while (1) { - getline - if ($1 == "}") - break; - gsub(/[*;]/, ""); - members[i++] = $NF; - } - - /* grab the structure's name */ - struct = $NF; - sub(/;$/, "", struct); - - /* output the DEFINE() macros */ - while (i-- > 0) - print "\tDEFINE(" struct ", " members[i] ");" - print "" - } -} - -END { - print "\treturn 0;" - print "}" -}arch/blackfin/cpu/bootrom-asm-offsets.c.in deleted +0
-13@@ -1,12 +0,0 @@ -/* A little trick taken from the kernel asm-offsets.h where we convert - * the C structures automatically into a bunch of defines for use in - * the assembly files. - */ - -#include <linux/stddef.h> -#include <asm/mach-common/bits/bootrom.h> - -#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) -#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m)) - -int main(int argc, char * const argv[]) --1.8.3.2
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hello Sonic.
Quoted 5 lines · On Mon, 2 Dec 2013 13:18:19 +0800 Sonic Zhang <[email protected]> wrote:
Hi Masahiro,
It seems this header is never used any more. Applied, thanks.
Sonic
Thanks.
Could you send a pull request to Tom?
Best Regards
Masahiro Yamada
Zhang
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hi Yamada,
The pull request will be sent after the next merge window in Jan.
Regards,
Sonic
Quoted 29 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.m at jp.panasonic.com]
Sent: Friday, December 06, 2013 1:48 PM
To: Sonic Zhang
Cc: U-Boot; Zhang, Sonic
Subject: Re: [U-Boot] [PATCH 1/2] blackfin: Do not generate unused header bootrom-asm-offsets.hHello Sonic.
Quoted 5 lines · On Mon, 2 Dec 2013 13:18:19 +0800 Sonic Zhang <[email protected]> wrote:
Hi Masahiro,
It seems this header is never used any more. Applied, thanks.
Sonic
Thanks.
Could you send a pull request to Tom?
Best Regards
Masahiro Yamada
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hello Sonic.
Quoted 1 line
The pull request will be sent after the next merge window in Jan.
How come it takes so long?
The 7 commits remaining in u-boot-blackfin/next
look like bug fixes or trivial changes.
I want to use my patch as a prerequisite of my next series.
Best Regards
Masahiro Yamada
Zhang
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hi Tom,
Are bug fixing patches fine to be merged before next merge windows? If so, I will send you a new pull request for Blackfin arch right now.
Regards,
Sonic
Quoted 23 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.m at jp.panasonic.com]
Sent: Friday, December 06, 2013 2:32 PM
To: Zhang, Sonic
Cc: Sonic Zhang; U-Boot
Subject: Re: [U-Boot] [PATCH 1/2] blackfin: Do not generate unused header bootrom-asm-offsets.hHello Sonic.
Quoted 1 line
The pull request will be sent after the next merge window in Jan.
How come it takes so long?
The 7 commits remaining in u-boot-blackfin/next look like bug fixes or trivial changes.I want to use my patch as a prerequisite of my next series.
Best Regards
Masahiro Yamada
PATCH 1/2 blackfin: Do not generate unused header bootrom-asm-offsets.h
Hello Sonic
Quoted 1 line
Are bug fixing patches fine to be merged before next merge windows?
Of course you can send a pull request anytime
if the patches are bug fixes, not new features.
You can refer to our wiki page:
http://www.denx.de/wiki/U-Boot/ReleaseCycle
It says like follows:
- While this merge window is open, new features can be added to the U-Boot source tree. Linus Torvalds explains here and there what the term "merge window" is supposed to mean.
- After the merge window closes, no new features may be added to allow for a release candidate phase which is intended to fix bugs and regressions.
Best Regards
Masahiro Yamada
PATCH 2/2 blackfin: Do not generate unused binary init.elf
In reply to Masahiro Yamada---
Hello Sonic
This file too.
It looks like arch/blackfin/cpu/init.elf is not used.
Please let me know if this file is necessary or not.
Best Regards
Masahiro Yamada
Makefile | 1 - arch/blackfin/cpu/.gitignore | 2 -- arch/blackfin/cpu/Makefile | 6 ------ arch/blackfin/cpu/init.lds.S | 25 ------------------------- 4 files changed, 34 deletions(-) delete mode 100644 arch/blackfin/cpu/.gitignore delete mode 100644 arch/blackfin/cpu/init.lds.S
Makefile +0 -1
@@ -794,7 +794,6 @@ clean: $(obj)board/matrix_vision/*/bootscript.img \ $(obj)board/voiceblue/eeprom \ $(obj)u-boot.lds \ - $(obj)arch/blackfin/cpu/init.{lds,elf} @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)include/bmp_logo_data.h @rm -f $(obj)lib/asm-offsets.s
arch/blackfin/cpu/.gitignore deleted +0 -2
@@ -1,2 +0,0 @@ -init.lds -init.elf
arch/blackfin/cpu/Makefile +0 -6
@@ -9,7 +9,6 @@ # Licensed under the GPL-2 or later. # -extra-y := init.elf extra-y += initcode.o extra-y += start.o obj-y := interrupt.o cache.o
@@ -34,8 +33,3 @@ ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) exit 1 ; \ fi endif - -$(obj)init.lds: init.lds.S - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P $^ -o $@ -$(obj)init.elf: $(obj)init.lds $(obj)init.o $(obj)initcode.o - $(LD) $(LDFLAGS) -T $^ -o $@
arch/blackfin/cpu/init.lds.S deleted +0 -25
@@ -1,25 +0,0 @@ -/* - * linker script for simple init.elf - * - * Copyright (c) 2005-2011 Analog Device Inc. - * - * Licensed under the GPL-2 or later. - */ - -#include <config.h> -#include <asm/blackfin.h> -#undef ALIGN -#undef ENTRY - -OUTPUT_ARCH(bfin) - -MEMORY -{ - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE -} - -ENTRY(_start) -SECTIONS -{ - .text.l1 : { *(.text .text.*) } >l1_code -}
Signature · 1 line
1.8.3.2
Zhang
PATCH 2/2 blackfin: Do not generate unused binary init.elf
Hi Yamada,
The init.elf is used to debug u-boot boot process on Blackfin via JTAG. You can't load u-boot binary to memory via JTAG without run the init.elf in Blackfin L1 SRAM first. So, this can't be removed.
Regards,
Sonic
Quoted 103 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.m at jp.panasonic.com]
Sent: Friday, November 29, 2013 2:34 PM
To: u-boot at lists.denx.de
Cc: Masahiro Yamada; Zhang, Sonic
Subject: [PATCH 2/2] blackfin: Do not generate unused binary init.elfSigned-off-by Masahiro Yamada <[email protected]>---
Hello Sonic
This file too.
It looks likearch/blackfin/cpu/init.elfis not used.Please let me know if this file is necessary or not.
Best Regards
Masahiro YamadaMakefile | 1 - arch/blackfin/cpu/.gitignore | 2 -- arch/blackfin/cpu/Makefile | 6 ------ arch/blackfin/cpu/init.lds.S | 25 ------------------------- 4 files changed, 34 deletions(-)delete mode 100644
arch/blackfin/cpu/.gitignoredelete mode 100644arch/blackfin/cpu/init.lds.SMakefile +0
-1@@ -794,7 +794,6 @@ clean: $(obj)board/matrix_vision/*/bootscript.img \ $(obj)board/voiceblue/eeprom \ $(obj)u-boot.lds \ - $(obj)arch/blackfin/cpu/init.{lds,elf} @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)include/bmp_logo_data.h @rm -f $(obj)lib/asm-offsets.sarch/blackfin/cpu/.gitignore deleted file mode renamed from arch/blackfin/cpu/.gitignore +0
-0100644 index 3df1fa2..0000000
arch/blackfin/cpu/.gitignore deleted +0
-2@@ -1,2 +0,0 @@ -init.lds -init.elfarch/blackfin/cpu/Makefile index renamed from arch/blackfin/cpu/Makefile +0
-0a61594a..f574ccb 100644
arch/blackfin/cpu/Makefile +0
-1@@ -9,7 +9,6 @@ # Licensed under the GPL-2 or later. # -extra-y := init.elfextra-y += initcode.o
extra-y += start.o
obj-y := interrupt.o cache.oarch/blackfin/cpu/Makefile +0
-0@@ -34,8 +33,3 @@ ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) exit 1 ; \ fiendif
arch/blackfin/cpu/Makefile +0
-5- -$(obj)init.lds: init.lds.S - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P $^ -o $@ -$(obj)init.elf: $(obj)init.lds $(obj)init.o $(obj)initcode.o - $(LD) $(LDFLAGS) -T $^ -o $@arch/blackfin/cpu/init.lds.S deleted file mode renamed from arch/blackfin/cpu/init.lds.S +0
-0100644 index 602e7c8..0000000
arch/blackfin/cpu/init.lds.S deleted +0
-26@@ -1,25 +0,0 @@ -/* - * linker script for simple init.elf - * - * Copyright (c) 2005-2011 Analog Device Inc. - * - * Licensed under the GPL-2 or later. - */ - -#include <config.h> -#include <asm/blackfin.h> -#undef ALIGN -#undef ENTRY - -OUTPUT_ARCH(bfin) - -MEMORY -{ - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE -} - -ENTRY(_start) -SECTIONS -{ - .text.l1 : { *(.text .text.*) } >l1_code -} --1.8.3.2
PATCH 2/2 blackfin: Do not generate unused binary init.elf
Hello Sonic
Quoted 1 line
The init.elf is used to debug u-boot boot process on Blackfin via JTAG. You can't load u-boot binary to memory via JTAG without run the init.elf in Blackfin L1 SRAM first. So, this can't be removed.
I understand. Thanks!
Please reject this patch.
How about the other one?arch/blackfin/cpu/bootrom-asm-offsets.h
Best Regards
Masahiro Yamada
Sonic Zhang
NAKPATCH 2/2 blackfin: Do not generate unused binary init.elf
In reply to Masahiro YamadaNAK
Sonic Zhang
Quoted 101 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
Hello Sonic
This file too.
It looks likearch/blackfin/cpu/init.elfis not used.Please let me know if this file is necessary or not.
Best Regards
Masahiro YamadaMakefile | 1 - arch/blackfin/cpu/.gitignore | 2 -- arch/blackfin/cpu/Makefile | 6 ------ arch/blackfin/cpu/init.lds.S | 25 ------------------------- 4 files changed, 34 deletions(-) delete mode 100644 arch/blackfin/cpu/.gitignore delete mode 100644 arch/blackfin/cpu/init.lds.SMakefile +0
-1@@ -794,7 +794,6 @@ clean: $(obj)board/matrix_vision/*/bootscript.img \ $(obj)board/voiceblue/eeprom \ $(obj)u-boot.lds \ - $(obj)arch/blackfin/cpu/init.{lds,elf} @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)include/bmp_logo_data.h @rm -f $(obj)lib/asm-offsets.sarch/blackfin/cpu/.gitignore deleted +0
-2@@ -1,2 +0,0 @@ -init.lds -init.elfarch/blackfin/cpu/Makefile +0
-6@@ -9,7 +9,6 @@ # Licensed under the GPL-2 or later. # -extra-y := init.elf extra-y += initcode.o extra-y += start.o obj-y := interrupt.o cache.o@@ -34,8 +33,3 @@ ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) exit 1 ; \ fi endif - -$(obj)init.lds: init.lds.S - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P $^ -o $@ -$(obj)init.elf: $(obj)init.lds $(obj)init.o $(obj)initcode.o - $(LD) $(LDFLAGS) -T $^ -o $@arch/blackfin/cpu/init.lds.S deleted +0
-26@@ -1,25 +0,0 @@ -/* - * linker script for simple init.elf - * - * Copyright (c) 2005-2011 Analog Device Inc. - * - * Licensed under the GPL-2 or later. - */ - -#include <config.h> -#include <asm/blackfin.h> -#undef ALIGN -#undef ENTRY - -OUTPUT_ARCH(bfin) - -MEMORY -{ - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE -} - -ENTRY(_start) -SECTIONS -{ - .text.l1 : { *(.text .text.*) } >l1_code -} --1.8.3.2
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot