Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263685AbUFQVN7 (ORCPT ); Thu, 17 Jun 2004 17:13:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263781AbUFQVN6 (ORCPT ); Thu, 17 Jun 2004 17:13:58 -0400 Received: from witte.sonytel.be ([80.88.33.193]:7875 "EHLO witte.sonytel.be") by vger.kernel.org with ESMTP id S263685AbUFQVN4 (ORCPT ); Thu, 17 Jun 2004 17:13:56 -0400 Date: Thu, 17 Jun 2004 23:13:52 +0200 (MEST) From: Geert Uytterhoeven To: Linus Torvalds cc: Linux/m68k , Linux Kernel Development Subject: [PATCH] cross-sparse Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1334 Lines: 39 Hi Linus, I wanted to give sparse a try on m68k, and noticed the current infrastructure doesn't handle cross-compilation (no sane m68k people compile kernels natively anymore, unless they run a Debian autobuilder ;-). After hacking the include paths in the sparse sources, installing the resulting binary as m68k-linux-sparse, and applying the following patch, it seems to work fine! OK to apply? --- linux-2.6.7/Makefile 2004-06-16 13:06:15.000000000 +0200 +++ linux-m68k-2.6.7/Makefile 2004-06-17 22:07:27.000000000 +0200 @@ -296,7 +296,7 @@ GENKSYMS = scripts/genksyms/genksyms DEPMOD = /sbin/depmod KALLSYMS = scripts/kallsyms PERL = perl -CHECK = sparse +CHECK = $(CROSS_COMPILE)sparse MODFLAGS = -DMODULE CFLAGS_MODULE = $(MODFLAGS) AFLAGS_MODULE = $(MODFLAGS) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/