Skip to contentSkip to conversation

linux-storcenter: add fw-and-powerpc-install.patch

PATCH In review Guo Hongruan 3 participants 6 messages Jan 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-storcenter: add fw-and-powerpc-install.patch

* fw-and-powerpc-install.patch is included in SRC_URI of linux-storcenter_2.6.27.7.bb
* but this patch is not located in linux-storcenter directory

---
 .../linux-storcenter/fw-and-powerpc-install.patch  |   36 ++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 recipes/linux/linux-storcenter/fw-and-powerpc-install.patch
recipes/linux/linux-storcenter/fw-and-powerpc-install.patch new file +36 -0
new file mode 100644
index 0000000..9f1eda7
@@ -0,0 +1,36 @@
+diff -urN linux-2.6.27.7.old//arch/powerpc/boot/Makefile linux-2.6.27.7//arch/powerpc/boot/Makefile
+--- linux-2.6.27.7.old//arch/powerpc/boot/Makefile	2008-11-20 23:02:37.000000000 +0000
++++ linux-2.6.27.7//arch/powerpc/boot/Makefile	2008-11-22 21:02:13.456791583 +0000
+@@ -376,16 +376,16 @@
+       cmd_mkdir           = mkdir -p $@
+ 
+ quiet_cmd_install	  = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_OBJDIR)/%,%,$@)
+-      cmd_install	  = $(INSTALL)  -m0644 $(patsubst $(DESTDIR)$(WRAPPER_OBJDIR)/%,$(obj)/%,$@) $@
++      cmd_install	  = $(INSTALL)  -m 0644 $(patsubst $(DESTDIR)$(WRAPPER_OBJDIR)/%,$(obj)/%,$@) $@
+ 
+ quiet_cmd_install_dts	  = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_DTSDIR)/%,dts/%,$@)
+-      cmd_install_dts	  = $(INSTALL)  -m0644 $(patsubst $(DESTDIR)$(WRAPPER_DTSDIR)/%,$(srctree)/$(obj)/dts/%,$@) $@
++      cmd_install_dts	  = $(INSTALL)  -m 0644 $(patsubst $(DESTDIR)$(WRAPPER_DTSDIR)/%,$(srctree)/$(obj)/dts/%,$@) $@
+ 
+ quiet_cmd_install_exe	  = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,%,$@)
+-      cmd_install_exe	  = $(INSTALL)  -m0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(obj)/%,$@) $@
++      cmd_install_exe	  = $(INSTALL)  -m 0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(obj)/%,$@) $@
+ 
+ quiet_cmd_install_wrapper = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,%,$@)
+-      cmd_install_wrapper = $(INSTALL)  -m0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(srctree)/$(obj)/%,$@) $@ ;\
++      cmd_install_wrapper = $(INSTALL)  -m 0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(srctree)/$(obj)/%,$@) $@ ;\
+ 				sed -i $@ -e 's%^object=.*%object=$(WRAPPER_OBJDIR)%' \
+ 					  -e 's%^objbin=.*%objbin=$(WRAPPER_BINDIR)%' \
+ 
+diff -urN linux-2.6.27.7.old//scripts/Makefile.fwinst linux-2.6.27.7//scripts/Makefile.fwinst
+--- linux-2.6.27.7.old//scripts/Makefile.fwinst	2008-11-20 23:02:37.000000000 +0000
++++ linux-2.6.27.7//scripts/Makefile.fwinst	2008-11-22 21:01:50.870504646 +0000
+@@ -37,7 +37,7 @@
+ 	@true
+ 
+ quiet_cmd_install = INSTALL $(subst $(srctree)/,,$@)
+-      cmd_install = $(INSTALL) -m0644 $< $@
++      cmd_install = $(INSTALL) -m 0644 $< $@
+ 
+ $(installed-fw-dirs):
+ 	$(call cmd,mkdir)
Signature · 1 line
1.5.4.3
#1 lore raw
Quoted 3 lines · On Saturday 23 January 2010 10:43:05 Guo Hongruan wrote:

* fw-and-powerpc-install.patch is included in SRC_URI of linux-storcenter_2.6.27.7.bb * but this patch is not located in linux-storcenter directory

Your commit message does not answer what it is doing and why it is needed.

#2 lore raw

the building of linux-storcenter_2.6.27.7 failed due to lack of this patch

Quoted 12 lines · 在 Sat, 23 Jan 2010 17:50:38 +0800,Holger Hans Peter Freyther…
Quoted 3 lines · On Saturday 23 January 2010 10:43:05 Guo Hongruan wrote:

* fw-and-powerpc-install.patch is included in SRC_URI of linux-storcenter_2.6.27.7.bb * but this patch is not located in linux-storcenter directory

Your commit message does not answer what it is doing and why it is needed.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#3 lore raw

Am Samstag, den 23.01.2010, 17:53 +0800 schrieb Guo Hongruan:

Quoted 1 line

the building of linux-storcenter_2.6.27.7 failed due to lack of this patch

I think Holger meant, what the patch is doing. Maybe it is not needed and you can remove it from SRC_URI.

That said, firstly Holger probably did not see that the patch is copied from somewhere else in the repository. The question is if it is recommended to note in the commit message from where it is copied or if Git should be used to determine this.

The second thing is, that the patch from SRC_URI is missing a header with the description of its purpose [1]. But since it is copied it has been so before.

Thanks,

Paul

[1] http://wiki.openembedded.net/index.php/Push_patches_upstream

#4 lore raw
Quoted 5 lines · 在 Sat, 23 Jan 2010 18:03:40 +0800,Paul Menzel…

Am Samstag, den 23.01.2010, 17:53 +0800 schrieb Guo Hongruan:

Quoted 1 line

the building of linux-storcenter_2.6.27.7 failed due to lack of this patch

I think Holger meant, what the patch is doing. Maybe it is not needed and you can remove it from SRC_URI.

I just copied it from linux-orion directory. This patch just adds space between '-m' and 'mode'. (see the patch) On my ubuntu-8.04, 'install -m0644' is the same as 'install -m 0644', so this patch can be removed from SRC_URI. But I don't know whether or not it is an issue on other linux operation systems.

By the way, I found it in the following recipes, all of them are for ppc arch.

linux-linkstationppc_2.6.28.4.bb:           file://fw-and-powerpc-install.patch;patch=1 \
linux-orion_2.6.28.4.bb:           file://fw-and-powerpc-install.patch;patch=1 \
linux-storcenter_2.6.27.7.bb:           file://fw-and-powerpc-install.patch;patch=1 \

So, I just copy it into linux-storcenter.

Quoted 5 lines

That said, firstly Holger probably did not see that the patch is copied from somewhere else in the repository. The question is if it is recommended to note in the commit message from where it is copied or if Git should be used to determine this.

Yes, I understand. I should tell where I copied it from

Quoted 12 lines

The second thing is, that the patch from SRC_URI is missing a header with the description of its purpose [1]. But since it is copied it has been so before.

Thanks,

Paul

[1] http://wiki.openembedded.net/index.php/Push_patches_upstream

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#5 lore raw
Quoted 7 lines · On Saturday 23 January 2010 11:22:27 Guo Hongruan wrote:

在 Sat, 23 Jan 2010 18:03:40 +0800,Paul Menzel

Quoted 4 lines · <[email protected]> 写道:

Am Samstag, den 23.01.2010, 17:53 +0800 schrieb Guo Hongruan:

Quoted 2 lines

the building of linux-storcenter_2.6.27.7 failed due to lack of this patch

Quoted 8 lines
Quoted 2 lines

I think Holger meant, what the patch is doing. Maybe it is not needed and you can remove it from SRC_URI.

I just copied it from linux-orion directory. This patch just adds space between '-m' and 'mode'. (see the patch) On my ubuntu-8.04, 'install -m0644' is the same as 'install -m 0644', so this patch can be removed
from SRC_URI. But I don't know whether or not it is an issue on other
linux operation systems.

This was a general remark on commit messages. I wanted to point out that your commit message does not say anything and this normally means if you are not able to say what the issue is you don't understand it yourself.

So from this thread and the fact you were copying the file it means. That the current "linux-storcenter" recipe is failing in the do_patch phase because the file can not be found?

The first thing to note is your commit message should include the problem you are trying to fix! Now the second thing is to figure out to fix it. E.g. where is the SRC_URI touched? Maybe it does make sense to copy the patch to recipes/linux/files? Or to version it as well? Or maybe it is not needed at all?

I would really appreciate if you could put some more care into the patches you are writing, this starts with the commit message and should be continued with the content of the patch itself.

thanks

	z.