[Clfs-dev] [ GIT-0.0.1-20120922-arm] Compile MIPS Kernel: Add CFLAGS_KERNEL: Ticket-835
knjterrell at mybluelight.com
knjterrell at mybluelight.com
Wed Feb 27 19:11:45 PST 2013
From: kanj <knjterrell at mybluelight.com>
---
BOOK/bootable/mips/kernel.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/BOOK/bootable/mips/kernel.xml b/BOOK/bootable/mips/kernel.xml
index cc0d5fb..2251fd6 100644
--- a/BOOK/bootable/mips/kernel.xml
+++ b/BOOK/bootable/mips/kernel.xml
@@ -59,7 +59,7 @@
href="../x86/kernel.xml"
xpointer="xpointer(//*[@os='j'])"/>
-<screen os="k"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- </userinput></screen>
+<screen os="k"><userinput>make CFLAGS_KERNEL='-Wno-error=unused-but-set-variable' ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- </userinput></screen>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../x86/kernel.xml"
@@ -92,7 +92,7 @@
href="../x86/kernel.xml"
xpointer="xpointer(//*[@os='s'])"/>
-<screen os="t"><userinput>cp arch/${CLFS_ARCH}/boot/vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
+<screen os="t"><userinput>cp vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../x86/kernel.xml"
--
1.7.9.5
I have used this to compile the kernel, using the mipssim_defconfig, for mips and mipsel configurations.
I was able to verify minimal using QEMU. I also did the same with the malta_defconfig.
The ticket pointed to making changes in the make file. I also found the following reference that points to changes
to the kernel:
https://dev.openwrt.org/browser/trunk/target/linux/generic/patches-2.6.38/970-mips-gcc-4.6-set-but-unused-fixes.patch?rev=31192
I verified this to work, but it appears that different kernel configs trip this issue at different points, so that
this couldnt serve as the basis for a generic patch.
Additionally, I verified that vmlinux does not show in the .../boot directory.
____________________________________________________________
Woman is 53 But Looks 25
Mom reveals 1 simple wrinkle trick that has angered doctors...
http://thirdpartyoffers.netzero.net/TGL3341/512ecb098c2d24b03447est03vuc
More information about the Clfs-dev
mailing list