Skip to contentSkip to conversation

[BUGFIX]

BUGFIX phcoder 4 participants 9 messages Apr 2, 2009 – Apr 4, 2009

lore
Share & tools
lore

phcoder

author
#0 lore raw

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
conf/powerpc-ieee1275.rmk +3 -3
index 437bf83..9ce1c9a 100644
@@ -16,7 +16,8 @@ DEFSYMFILES += kernel_syms.lst
 kernel_elf_HEADERS = boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
 	env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \
 	symbol.h term.h time.h types.h powerpc/libgcc.h loader.h partition.h \
-	pc_partition.h ieee1275/ieee1275.h machine/kernel.h handler.h
+	pc_partition.h ieee1275/ieee1275.h machine/kernel.h handler.h \
+	command.h list.h
 
 symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
 	/bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
@@ -88,8 +89,7 @@ kernel_elf_SOURCES = kern/powerpc/ieee1275/startup.S kern/ieee1275/cmain.c \
 	kern/parser.c kern/partition.c kern/env.c kern/powerpc/dl.c 	\
 	kern/generic/millisleep.c kern/time.c                            \
 	symlist.c kern/powerpc/cache.S
-kernel_elf_HEADERS = grub/powerpc/ieee1275/ieee1275.h list.h handler.h \
-	command.h
+kernel_elf_HEADERS += grub/powerpc/ieee1275/ieee1275.h
 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
 kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
 kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
#1 lore raw
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

Signature · 1 line
Bean
author
#2 lore raw
Quoted 10 lines · Bean
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

I have no idea, I was hoping that someone more familiar with build system could tell me why it's done so

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
#3 lore raw

symlist.c is generated by gensymlist.sh script so only the patch for conf/powerpc-ieee1275.rmk is really necessary.

Quoted 14 lines · phcoder
Quoted 10 lines · Bean
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

I have no idea, I was hoping that someone more familiar with build system could tell me why it's done so

Signature · 4 lines
Best Regards,

Manoel Rebelo Abranches 
IBM Linux Technology Center Brazil
author
#4 lore raw

Is kernel_elf_HEADERS used for anything else than symlist.c and kernel-symlist,lst generation?

Quoted 16 lines · Manoel Rebelo Abranches

symlist.c is generated by gensymlist.sh script so only the patch for conf/powerpc-ieee1275.rmk is really necessary.

Quoted 12 lines · phcoder
Quoted 9 lines · Bean
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

I have no idea, I was hoping that someone more familiar with build system could tell me why it's done so

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
#5 lore raw
Quoted 2 lines · phcoder

Is kernel_elf_HEADERS used for anything else than symlist.c and kernel-symlist,lst generation?

Hi,

I believe that kernel_elf_HEADERS is only used for symlist.c, so you should be able to remove the second kernel_elf_HEADERS and still compile properly.

Signature · 1 line
Bean
author
#6 lore raw
In reply to phcoder

rgrep revealed no use for the second kernel_elf_HEADERS, so I propose to remove it altogether Is everybody comfortable with this patch? If I hear no oppositions in couple of days I'll commit it.

Quoted 20 lines · phcoder

Is kernel_elf_HEADERS used for anything else than symlist.c and kernel-symlist,lst generation?

Quoted 16 lines · Manoel Rebelo Abranches

symlist.c is generated by gensymlist.sh script so only the patch for conf/powerpc-ieee1275.rmk is really necessary.

Quoted 12 lines · phcoder
Quoted 9 lines · Bean
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

I have no idea, I was hoping that someone more familiar with build system could tell me why it's done so

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
ChangeLog +5 -0
index 8532741..61279fa 100644
@@ -1,3 +1,8 @@
+2009-04-03  Vladimir Serbinenko  <[email protected]>
+
+	* conf/powerpc-ieee1275 (kernel_elf_HEADERS): add list.h and command.h
+	remove suplicate kernel_elf_HEADERS
+
 2009-04-01  Pavel Roskin  <[email protected]>
 
 	* Makefile.in: Remove all references to MODULE_LDFLAGS, it's
conf/powerpc-ieee1275.rmk +2 -3
index 5aaaf56..9ba2981 100644
@@ -16,7 +16,8 @@ DEFSYMFILES += kernel_syms.lst
 kernel_elf_HEADERS = boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
 	env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \
 	symbol.h term.h time.h types.h powerpc/libgcc.h loader.h partition.h \
-	pc_partition.h ieee1275/ieee1275.h machine/kernel.h handler.h
+	pc_partition.h ieee1275/ieee1275.h machine/kernel.h handler.h list.h \
+	command.h
 
 symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
 	/bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
@@ -87,8 +88,6 @@ kernel_elf_SOURCES = kern/powerpc/ieee1275/startup.S kern/ieee1275/cmain.c \
 	kern/parser.c kern/partition.c kern/env.c kern/powerpc/dl.c 	\
 	kern/generic/millisleep.c kern/time.c                            \
 	symlist.c kern/powerpc/cache.S
-kernel_elf_HEADERS = grub/powerpc/ieee1275/ieee1275.h list.h handler.h \
-	command.h
 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
 kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
 kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
#7 lore raw
Quoted 4 lines · phcoder

rgrep revealed no use for the second kernel_elf_HEADERS, so I propose to remove it altogether
Is everybody comfortable with this patch? If I hear no oppositions in couple of days I'll commit it.

No objections. By the way, the same problems exists in sparc64-ieee1275.rmk

Please change "suplicate" to "extraneous" in ChangeLog.

Signature · 2 lines
Regards,
Pavel Roskin
author
#8 lore raw
In reply to phcoder

Commited

Quoted 25 lines · phcoder

rgrep revealed no use for the second kernel_elf_HEADERS, so I propose to remove it altogether Is everybody comfortable with this patch? If I hear no oppositions in couple of days I'll commit it.

Quoted 20 lines · phcoder

Is kernel_elf_HEADERS used for anything else than symlist.c and kernel-symlist,lst generation?

Quoted 16 lines · Manoel Rebelo Abranches

symlist.c is generated by gensymlist.sh script so only the patch for conf/powerpc-ieee1275.rmk is really necessary.

Quoted 12 lines · phcoder
Quoted 9 lines · Bean
Quoted 3 lines · phcoder

Hello symbols from command.h aren't exported correctly. Here's a bugfix. It compiles with it but I haven't checked yet if compiled binary works. Can someone familiar with build system have a look at this?

Hi,

It's a little wired, why would powerpc-ieee1275.rmk has two kernel_elf_HEADERS in the first place ?

I have no idea, I was hoping that someone more familiar with build system could tell me why it's done so

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko