From: "Jan Beulich" <JBeulich@novell.com>
To: <lizzi@cnam.fr>
Cc: <linux-kernel@vger.kernel.org>
Subject: linux build problem with
Date: Tue, 12 Oct 2004 09:39:10 +0200 [thread overview]
Message-ID: <s16b9829.049@emea1-mh.id2.novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
Christophe,
building a kernel with distinct source and object trees I noted that
there is a consistent (but ignored) failure in generating the fore200e
firmware images. The problem is that in such a configuration there
simply is no include/asm link in the source tree. Consequently, a change
similar to the one below is necessary (this one's against a SuSE
derivate of 2.6.5, but checking with the 2.6.8.1 sources shows that the
relevant code doesn't seem to have changed).
Regards, Jan
--- drivers/atm/Makefile.0 2004-04-04 05:36:15.000000000 +0200
+++ drivers/atm/Makefile 2004-10-12 09:22:04.569674328 +0200
@@ -39,7 +39,8 @@ ifeq ($(CONFIG_ATM_FORE200E_PCA),y)
fore_200e-objs += fore200e_pca_fw.o
# guess the target endianess to choose the right PCA-200E firmware
image
ifeq ($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y)
- CONFIG_ATM_FORE200E_PCA_FW = $(shell if test -n "`$(CC) -E -dM
$(src)/../../include/asm/byteorder.h | grep ' __LITTLE_ENDIAN '`"; then
echo $(obj)/pca200e.bin; else echo $(obj)/pca200e_ecd.bin2; fi)
+ byteorder.h := include$(if $(patsubst
$(srctree),,$(objtree)),2)/asm/byteorder.h
+ CONFIG_ATM_FORE200E_PCA_FW := $(obj)/pca200e$(if $(shell $(CC) -E
-dM $(byteorder.h) | grep ' __LITTLE_ENDIAN '),.bin,_ecd.bin2)
endif
endif
[-- Attachment #2: fore200e.patch --]
[-- Type: application/octet-stream, Size: 803 bytes --]
--- drivers/atm/Makefile.0 2004-04-04 05:36:15.000000000 +0200
+++ drivers/atm/Makefile 2004-10-12 09:22:04.569674328 +0200
@@ -39,7 +39,8 @@ ifeq ($(CONFIG_ATM_FORE200E_PCA),y)
fore_200e-objs += fore200e_pca_fw.o
# guess the target endianess to choose the right PCA-200E firmware image
ifeq ($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y)
- CONFIG_ATM_FORE200E_PCA_FW = $(shell if test -n "`$(CC) -E -dM $(src)/../../include/asm/byteorder.h | grep ' __LITTLE_ENDIAN '`"; then echo $(obj)/pca200e.bin; else echo $(obj)/pca200e_ecd.bin2; fi)
+ byteorder.h := include$(if $(patsubst $(srctree),,$(objtree)),2)/asm/byteorder.h
+ CONFIG_ATM_FORE200E_PCA_FW := $(obj)/pca200e$(if $(shell $(CC) -E -dM $(byteorder.h) | grep ' __LITTLE_ENDIAN '),.bin,_ecd.bin2)
endif
endif
reply other threads:[~2004-10-12 7:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s16b9829.049@emea1-mh.id2.novell.com \
--to=jbeulich@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizzi@cnam.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®