tags 525352 + patch
thanks

Hello,

23 квітня 2009 о 20:10 -0500 Manoj Srivastava написав(-ла):
>         How would the cross compilation work without make-kpkg? Can you
>  show me a log of the native cross compilation? I could make
>  kernel-package imitate that.
Cross-compilation only requires setting of ARCH and CROSS_COMPILE variables.
make-kpkg does this almost correctly, it only passes ARCH=armel to Makefile
in misc/version_vars.mk. This results in incorrect version (those dots).

Problem can be fixed using attached patch (modifies misc/kernel_arch.mk).

Another problem: minimal.mk also sets KERNEL_ARCH for armel. I'm not sure
if it needed, and why it is not done using misc/kernel_arch.mk. But if it
is needed then other architectures are missing (mipsel, parisc).
diff --git a/kernel/ruleset/misc/kernel_arch.mk b/kernel/ruleset/misc/kernel_arch.mk
index 5a0a4fe..1922f38 100644
--- a/kernel/ruleset/misc/kernel_arch.mk
+++ b/kernel/ruleset/misc/kernel_arch.mk
@@ -57,6 +57,12 @@ ifeq ($(strip $(architecture)),hppa)
   KERNEL_ARCH := parisc
 endif
 
+ifeq ($(strip $(architecture)),armel)
+  KERNEL_ARCH := arm
+endif
+ifeq ($(strip $(architecture)),armeb)
+  KERNEL_ARCH := arm
+endif
 
 #Local variables:
 #mode: makefile

Attachment: signature.asc
Description: Digital signature

Reply via email to