* [PATCH 00/12] Add Pre-Bootloader support
@ 2012-07-28 12:24 Jean-Christophe PLAGNIOL-VILLARD
2012-07-28 12:27 ` [PATCH 14/15] kbuild: allow to have custom cppflags for pbl Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-07-28 12:24 UTC (permalink / raw)
To: barebox
Hi,
v2:
add custom cppflags to pbl
on arm always the garbage collector
please pull
The following changes since commit 9ab50e0b9cb6400a4442acd36c3d4b315685fa6a:
Merge branch 'for-next/tqma53' into next (2012-07-27 10:05:03 +0200)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git tags/pbl
for you to fetch changes up to 218db83678fa1602ac7ad7fe6946692d67976895:
arm: allays enable the garbage collector for pbl (2012-07-28 20:14:45 +0800)
----------------------------------------------------------------
Add pre-bootloader (pbl) image support
This allows for creating a pre-bootloader binary for
- nand boot
- mmc boot
- compressed image
Currently on the compressed image is implemented the boot really on current lowlevel
init support. In a second step this could be move to the pbl c code with generic framework.
The pbl will be incharge of the lowlevel init if needed.
The barebox will skip it.
The decompressor support lzo and gzip and allow to add easly more.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (11):
kbuild: Init all relevant variables used in kbuild files so
kbuild: add pre-bootloader (pbl) target
Add pre-bootloader (pbl) image support
pbl: discard unwind symbol if enable in barebox
decompress_unlzo: define decompress_unlzo as decompress
decompressor: import malloc/free implementation for linux 3.4
ARM: add early malloc support needed by the decompressor
compressed image: add gzip support
at91: add lowlevel init to the pbl
kbuild: allow to have custom cppflags for pbl
arm: allays enable the garbage collector for pbl
Sascha Hauer (3):
Add compressed image support
only compress default env in uncompressed images
ARM: Separate assembler functions into their own section
Makefile | 11 ++++--
arch/arm/Kconfig | 2 ++
arch/arm/Makefile | 8 +++++
arch/arm/cpu/Makefile | 1 +
arch/arm/cpu/start.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
arch/arm/lib/Makefile | 4 +++
arch/arm/lib/barebox.lds.S | 3 +-
arch/arm/lib/findbit.S | 9 +++++
arch/arm/mach-at91/Makefile | 2 ++
arch/arm/pbl/Makefile | 40 ++++++++++++++++++++++
arch/arm/pbl/piggy.gzip.S | 6 ++++
arch/arm/pbl/piggy.lzo.S | 6 ++++
arch/arm/pbl/zbarebox.lds.S | 74 ++++++++++++++++++++++++++++++++++++++++
common/Kconfig | 34 +++++++++++++++++++
include/asm-generic/memory_layout.h | 1 +
include/linux/decompress/mm.h | 68 +++++++++++++++++++++++++++++++++++++
lib/decompress_inflate.c | 1 +
lib/decompress_unlzo.c | 1 +
pbl/Makefile | 5 +++
pbl/misc.c | 14 ++++++++
pbl/string.c | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
scripts/Makefile.build | 75 ++++++++++++++++++++++++++++++++++++++---
scripts/Makefile.lib | 14 ++++++++
23 files changed, 607 insertions(+), 12 deletions(-)
create mode 100644 arch/arm/pbl/Makefile
create mode 100644 arch/arm/pbl/piggy.gzip.S
create mode 100644 arch/arm/pbl/piggy.lzo.S
create mode 100644 arch/arm/pbl/zbarebox.lds.S
create mode 100644 include/linux/decompress/mm.h
create mode 100644 pbl/Makefile
create mode 100644 pbl/misc.c
create mode 100644 pbl/string.c
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 14/15] kbuild: allow to have custom cppflags for pbl
2012-07-28 12:24 [PATCH 00/12] Add Pre-Bootloader support Jean-Christophe PLAGNIOL-VILLARD
@ 2012-07-28 12:27 ` Jean-Christophe PLAGNIOL-VILLARD
2012-07-28 12:27 ` [PATCH 15/15] arm: allays enable the garbage collector " Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-07-28 12:27 UTC (permalink / raw)
To: barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
scripts/Makefile.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index e5b7779..0471a46 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -188,7 +188,7 @@ quiet_cmd_pbl_cc_o_c = PBLCC $@
ifndef CONFIG_MODVERSIONS
cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
-cmd_pbl_cc_o_c = $(CC) -D__PBL__ $(c_flags) -c -o $@ $<
+cmd_pbl_cc_o_c = $(CC) -D__PBL__ $(c_flags) $(PBL_CPPFLAGS) -c -o $@ $<
else
# When module versioning is enabled the following steps are executed:
@@ -279,7 +279,7 @@ cmd_as_s_S = $(CPP) $(a_flags) -o $@ $<
$(call if_changed_dep,as_s_S)
quiet_cmd_as_o_S = AS $(quiet_modtag) $@
-cmd_as_o_S = $(CC) $(a_flags) -c -o $@ $<
+cmd_as_o_S = $(CC) $(a_flags) $(PBL_CPPFLAGS) -c -o $@ $<
quiet_cmd_pbl_as_o_S = PBLAS $@
cmd_pbl_as_o_S = $(CC) -D__PBL__ $(a_flags) -c -o $@ $<
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 15/15] arm: allays enable the garbage collector for pbl
2012-07-28 12:27 ` [PATCH 14/15] kbuild: allow to have custom cppflags for pbl Jean-Christophe PLAGNIOL-VILLARD
@ 2012-07-28 12:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-07-28 12:27 UTC (permalink / raw)
To: barebox
This allow to save arround 1KiB on at91
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/pbl/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/pbl/Makefile b/arch/arm/pbl/Makefile
index 04fdffb..143da8b 100644
--- a/arch/arm/pbl/Makefile
+++ b/arch/arm/pbl/Makefile
@@ -19,7 +19,9 @@ $(obj)/zbarebox.bin: $(obj)/zbarebox FORCE
$(obj)/zbarebox.S: $(obj)/zbarebox FORCE
$(call if_changed,disasm)
+PBL_CPPFLAGS += -fdata-sections -ffunction-sections
LDFLAGS_zbarebox := -Map zbarebox.map
+LDFLAGS_zbarebox += -static --gc-sections
zbarebox-common := $(barebox-pbl-common) $(obj)/$(piggy_o)
zbarebox-lds := $(obj)/zbarebox.lds
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 00/12] Add Pre-Bootloader support
@ 2012-07-27 18:31 Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-07-27 18:31 UTC (permalink / raw)
To: barebox
Hi,
please pull
The following changes since commit 9ab50e0b9cb6400a4442acd36c3d4b315685fa6a:
Merge branch 'for-next/tqma53' into next (2012-07-27 10:05:03 +0200)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git tags/pbl
for you to fetch changes up to e373b3c53902c1d6da4289db9467ad50e209d0c7:
at91: add lowlevel init to the pbl (2012-07-28 02:19:09 +0800)
----------------------------------------------------------------
Add pre-bootloader (pbl) image support
This allows for creating a pre-bootloader binary for
- nand boot
- mmc boot
- compressed image
Currently on the compressed image is implemented the boot really on current lowlevel
init support. In a second step this could be move to the pbl c code with generic framework.
The pbl will be incharge of the lowlevel init if needed.
The barebox will skip it.
The decompressor support lzo and gzip and allow to add easly more.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (9):
kbuild: Init all relevant variables used in kbuild files so
kbuild: add pre-bootloader (pbl) target
Add pre-bootloader (pbl) image support
pbl: discard unwind symbol if enable in barebox
decompress_unlzo: define decompress_unlzo as decompress
decompressor: import malloc/free implementation for linux 3.4
ARM: add early malloc support needed by the decompressor
compressed image: add gzip support
at91: add lowlevel init to the pbl
Sascha Hauer (3):
Add compressed image support
only compress default env in uncompressed images
ARM: Separate assembler functions into their own section
Makefile | 11 ++++--
arch/arm/Kconfig | 2 ++
arch/arm/Makefile | 8 +++++
arch/arm/cpu/Makefile | 1 +
arch/arm/cpu/start.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
arch/arm/lib/Makefile | 4 +++
arch/arm/lib/barebox.lds.S | 3 +-
arch/arm/lib/findbit.S | 9 +++++
arch/arm/mach-at91/Makefile | 2 ++
arch/arm/pbl/Makefile | 38 +++++++++++++++++++++
arch/arm/pbl/piggy.gzip.S | 6 ++++
arch/arm/pbl/piggy.lzo.S | 6 ++++
arch/arm/pbl/zbarebox.lds.S | 74 ++++++++++++++++++++++++++++++++++++++++
common/Kconfig | 34 +++++++++++++++++++
include/asm-generic/memory_layout.h | 1 +
include/linux/decompress/mm.h | 68 +++++++++++++++++++++++++++++++++++++
lib/decompress_inflate.c | 1 +
lib/decompress_unlzo.c | 1 +
pbl/Makefile | 5 +++
pbl/misc.c | 14 ++++++++
pbl/string.c | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
scripts/Makefile.build | 73 +++++++++++++++++++++++++++++++++++++---
scripts/Makefile.lib | 14 ++++++++
23 files changed, 604 insertions(+), 11 deletions(-)
create mode 100644 arch/arm/pbl/Makefile
create mode 100644 arch/arm/pbl/piggy.gzip.S
create mode 100644 arch/arm/pbl/piggy.lzo.S
create mode 100644 arch/arm/pbl/zbarebox.lds.S
create mode 100644 include/linux/decompress/mm.h
create mode 100644 pbl/Makefile
create mode 100644 pbl/misc.c
create mode 100644 pbl/string.c
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-28 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-28 12:24 [PATCH 00/12] Add Pre-Bootloader support Jean-Christophe PLAGNIOL-VILLARD
2012-07-28 12:27 ` [PATCH 14/15] kbuild: allow to have custom cppflags for pbl Jean-Christophe PLAGNIOL-VILLARD
2012-07-28 12:27 ` [PATCH 15/15] arm: allays enable the garbage collector " Jean-Christophe PLAGNIOL-VILLARD
-- strict thread matches above, loose matches on Subject: below --
2012-07-27 18:31 [PATCH 00/12] Add Pre-Bootloader support Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox