lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: make help ARCH=xx fun
On Wed, Feb 25, 2004 at 08:00:49PM +0100, Sam Ravnborg wrote:
> >
> > Hmm. Would something (untested) like the following be horribly
> > wrong/bad?
> >
> > define archhelp
> > @echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)'
> > @if [ -d arch/$(ARCH)/configs/SCCS ]; then bk get -q arch/$(ARCH)/configs/;fi
> > # Assume board_defconfig
> > for board in arch/$(ARCH)/configs/*defconfig; \
> > do \
> > echo -n ' ' $$board | sed -e 's|arch/$(ARCH)/configs/||g' ; \
> > echo -n ' - Build for ' ; \
> > echo -e $$board | sed -e 's|.*_||g'; \
> > done
> > endef
>
> I do not want kbuild to be cluttered with bk specific stuff.

I can understand that. How about:
for board in arch/$(ARCH)/configs/*defconfig; \
do \
if [ -f $board ]; then
...
fi
done

> Also the "- Build for xxxxx" is not good enough.

Erm, it's usually something descriptive enough, if one is firmiliar with
the platform / what's intended to build.

> I will try to come up with a patch the uses a file named
> arch/$(ARCH)/configs/index.txt

The 'issue' with configs/index.txt, I'll wager, is that for every new
board, that's one more file to modify (and thus possibly conflict on).

--
Tom Rini
http://gate.crashing.org/~trini/
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.075 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site