Patchwork Make flashrom build on PPC/PowerPC with just "make"

login
register
about
Submitter Uwe Hermann
Date 2011-07-28 20:37:08
Message ID <20110728203707.GP4802@greenwood>
Download mbox | patch
Permalink /patch/3314/
State Accepted
Headers show

Comments

Uwe Hermann - 2011-07-28 20:37:08
Hi,

see patch. This complements the recent ppc patch to make builds simpler.


Uwe.
Andrew Morgan - 2011-07-28 21:34:16
Very nice, now PowerPC can just work!

Tested on PowerPC Mac Mini Linux both with and without the other patch. 
(And on x86_64 to see if it broke anything there.)

Acked-by: Andrew Morgan <ziltro@ziltro.com>
Uwe Hermann - 2011-07-29 12:14:15
On Thu, Jul 28, 2011 at 10:34:16PM +0100, Andrew Morgan wrote:
> Very nice, now PowerPC can just work!
> 
> Tested on PowerPC Mac Mini Linux both with and without the other
> patch. (And on x86_64 to see if it broke anything there.)
> 
> Acked-by: Andrew Morgan <ziltro@ziltro.com>

Thanks, r1400.

I also added atahpt in the commit, forgot about that one. It's currently
not enabled by default, but would break on ppc once we do that.


Uwe.

Patch

Make flashrom build on PPC/PowerPC with just "make".

Build-tested in a QEMU ppc (Debian) image.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>

Index: Makefile
===================================================================
--- Makefile	(Revision 1398)
+++ Makefile	(Arbeitskopie)
@@ -202,6 +202,35 @@ 
 endif
 endif
 
+ifeq ($(ARCH), "ppc")
+# There's no PCI port I/O support on PPC/PowerPC, yet.
+ifeq ($(CONFIG_NIC3COM), yes)
+UNSUPPORTED_FEATURES += CONFIG_NIC3COM=yes
+else
+override CONFIG_NIC3COM = no
+endif
+ifeq ($(CONFIG_NICREALTEK), yes)
+UNSUPPORTED_FEATURES += CONFIG_NICREALTEK=yes
+else
+override CONFIG_NICREALTEK = no
+endif
+ifeq ($(CONFIG_NICNATSEMI), yes)
+UNSUPPORTED_FEATURES += CONFIG_NICNATSEMI=yes
+else
+override CONFIG_NICNATSEMI = no
+endif
+ifeq ($(CONFIG_RAYER_SPI), yes)
+UNSUPPORTED_FEATURES += CONFIG_RAYER_SPI=yes
+else
+override CONFIG_RAYER_SPI = no
+endif
+ifeq ($(CONFIG_SATAMV), yes)
+UNSUPPORTED_FEATURES += CONFIG_SATAMV=yes
+else
+override CONFIG_SATAMV = no
+endif
+endif
+
 CHIP_OBJS = jedec.o stm50flw0x0x.o w39.o w29ee011.o \
 	sst28sf040.o m29f400bt.o 82802ab.o pm49fl00x.o \
 	sst49lfxxxc.o sst_fwhub.o flashchips.o spi.o spi25.o sharplhf00l04.o \