ARM: pbl: short patches
[PATCH 1/3] ARM: pbl: remove zbarebox.map during 'make clean' [PATCH 2/3] ARM: start-pbl.c: make errorfn() static [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/3 ARM: pbl: remove zbarebox.map during 'make clean'
--- arch/arm/pbl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/pbl/Makefile +1 -1
@@ -9,7 +9,7 @@ targets := zbarebox.lds zbarebox zbarebox.bin zbarebox.S \ $(piggy_o) piggy.$(suffix_y) # Make sure files are removed during clean -extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern +extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern zbarebox.map $(obj)/zbarebox.bin: $(obj)/zbarebox FORCE $(call if_changed,objcopy)
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/3 ARM: start-pbl.c: make errorfn() static
In reply to Antony Pavlov--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/start-pbl.c +1 -1
@@ -127,7 +127,7 @@ static void mmu_disable(void)__mmu_cache_off (); } -void noinline errorfn(char *error) +static void noinline errorfn(char *error) {while (1 ); }
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/3 ARM: start-pbl.c: unificate path to lib/decompress_*.c
In reply to Antony Pavlov--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/start-pbl.c +1 -1
@@ -66,7 +66,7 @@ extern void *input_data_end;#endif #ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c" #endif static unsigned long *ttb;
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
Sorry, not "unificate" but "unify" of course.
Quoted 21 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/cpu/start-pbl.c +1
-2@@ -66,7 +66,7 @@ extern void *input_data_end;#endif #ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c" #endif static unsigned long *ttb; --1.7.10.4
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
In reply to Antony PavlovQuoted 10 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/cpu/start-pbl.c +0
-0
arch/arm/cpu/start-pbl.c extern void *input_data_end; · line 69
Quoted 5 lines
arch/arm/cpu/start-pbl.c +1
-1@@ -66,7 +66,7 @@ extern void *input_data_end;#endif #ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c"
This is strange. Why did this work beforehand?
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
Quoted 13 lines · Sascha Hauer
Quoted 12 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/cpu/start-pbl.c +0
-0@@ -66,7 +66,7 @@ extern void *input_data_end;#endif
Quoted 5 lines
arch/arm/cpu/start-pbl.c extern void *input_data_end; · line 69
Quoted 3 lines
arch/arm/cpu/start-pbl.c +1
-1#ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c" This is strange. Why did this work beforehand?
Look above in the arch/arm/cpu/start-pbl.c:
#ifdef CONFIG_IMAGE_COMPRESSION_LZO
#include "../../../lib/decompress_unlzo.c"
#endif
#ifdef CONFIG_IMAGE_COMPRESSION_GZIP
#include "../../../../lib/decompress_inflate.c"
#endif
The files decompress_inflate.c and decompress_unlzo.c are in the same directory. Why we use different prefixes to address them?
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
Quoted 26 lines · Antony Pavlov
Quoted 13 lines · Sascha Hauer
Quoted 12 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/cpu/start-pbl.c +0
-0@@ -66,7 +66,7 @@ extern void *input_data_end;#endif Quoted 5 lines
arch/arm/cpu/start-pbl.c extern void *input_data_end; · line 69
Quoted 3 lines
arch/arm/cpu/start-pbl.c +1
-1#ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c" This is strange. Why did this work beforehand?
Look above in the
arch/arm/cpu/start-pbl.c:#ifdef
CONFIG_IMAGE_COMPRESSION_LZO
#include "../../../lib/decompress_unlzo.c"
#endif
Quoted 6 lines
#ifdef
CONFIG_IMAGE_COMPRESSION_GZIP
#include "../../../../lib/decompress_inflate.c"
#endifThe files
decompress_inflate.canddecompress_unlzo.care in the same directory. Why we use different prefixes to address them?
I understand the patch and why it's correct. I just wondered why it works correctly without this patch.
ls arch/arm/cpu/../../../../lib/decompress_inflate.c
ls: cannot access arch/arm/cpu/../../../../lib/decompress_inflate.c: No such file or directory
This is correct, we only have to go three directories up. Still it compiles fine.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
Quoted 34 lines · Sascha Hauer
Quoted 26 lines · Antony Pavlov
Quoted 13 lines · Sascha Hauer
Quoted 12 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- arch/arm/cpu/start-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/cpu/start-pbl.c +0
-0@@ -66,7 +66,7 @@ extern void *input_data_end;#endif Quoted 5 lines
arch/arm/cpu/start-pbl.c extern void *input_data_end; · line 69
Quoted 3 lines
arch/arm/cpu/start-pbl.c +1
-1#ifdef CONFIG_IMAGE_COMPRESSION_GZIP -#include "../../../../lib/decompress_inflate.c" +#include "../../../lib/decompress_inflate.c" This is strange. Why did this work beforehand?
Look above in the
arch/arm/cpu/start-pbl.c:#ifdef
CONFIG_IMAGE_COMPRESSION_LZO
#include "../../../lib/decompress_unlzo.c"
#endifQuoted 6 lines
#ifdef
CONFIG_IMAGE_COMPRESSION_GZIP
#include "../../../../lib/decompress_inflate.c"
#endifThe files
decompress_inflate.canddecompress_unlzo.care in the same directory. Why we use different prefixes to address them?
Quoted 8 lines
I understand the patch and why it's correct. I just wondered why it works correctly without this patch.
ls
arch/arm/cpu/../../../../lib/decompress_inflate.c
ls: cannot accessarch/arm/cpu/../../../../lib/decompress_inflate.c: No such file or directoryThis is correct, we only have to go three directories up. Still it compiles fine.
IMHO we use very many '-I' options when running C compiler. Some of them make possible to include the decompres-related files with the '../../../../' prefix,
the other ones make possible to use '../../../'.
If you will ally the patch, please don't forget to change 'unificate' to 'unify'.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedRe: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c
Quoted 9 lines · Antony Pavlov
Quoted 9 lines
Quoted 2 lines
The files
decompress_inflate.canddecompress_unlzo.care in the same directory. Why we use different prefixes to address them?I understand the patch and why it's correct. I just wondered why it works correctly without this patch.
ls
arch/arm/cpu/../../../../lib/decompress_inflate.c
ls: cannot accessarch/arm/cpu/../../../../lib/decompress_inflate.c: No such file or directory
Quoted 7 lines
Quoted 2 lines
This is correct, we only have to go three directories up. Still it compiles fine.
IMHO we use very many '-I' options when running C compiler. Some of them make possible to include the decompres-related files with the '../../../../' prefix,
the other ones make possible to use '../../../'.
I wasn't aware that files included with "" also evaluate the -i options.
Applied, thanks.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox