From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17642 invoked by alias); 7 Jan 2013 21:28:24 -0000 Received: (qmail 17634 invoked by uid 22791); 7 Jan 2013 21:28:23 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_XJ,URIBL_DBL_SPAM X-Spam-Check-By: sourceware.org Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com) (74.125.82.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Jan 2013 21:28:16 +0000 Received: by mail-we0-f172.google.com with SMTP id r3so10730633wey.17 for ; Mon, 07 Jan 2013 13:28:14 -0800 (PST) X-Received: by 10.180.87.102 with SMTP id w6mr11366053wiz.19.1357594094724; Mon, 07 Jan 2013 13:28:14 -0800 (PST) Received: from treguer.localnet (ARennes-256-1-33-7.w90-32.abo.wanadoo.fr. [90.32.16.7]) by mx.google.com with ESMTPS id bz12sm15557029wib.5.2013.01.07.13.28.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 13:28:13 -0800 (PST) From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [PATCH] kernel/linux: Allow user to manually enter Linux version Date: Mon, 07 Jan 2013 21:28:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.6.11-treguer; KDE/4.4.5; x86_64; ; ) Cc: ANDY KENNEDY References: <201301071849.32321.yann.morin.1998@free.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201301072228.11334.yann.morin.1998@free.fr> X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00009.txt.bz2 Andy, All, On Monday 07 January 2013 ANDY KENNEDY wrote: > Please forgive the ignorance, but was is a driver script? Oh, sure! :-) A simple driver script could be something like: ---8<--- #!/bin/sh # Call this script something witty, eg.: my-ct-ng ;-) set -e KVER="X.Y.Z" KDIR="linux-${KVER}" KFILE="${KDIR}.tar.bz2" KURL="http://kernel.org/pub/..../${KFILE}" if [ ! -f "${KDIR}" ]; then if [ ! -f "${KFILE}" ]; then curl "${KURL}" >"${KFILE}" fi tar xjf "${KFILE}" fi exec ct-ng "${@}" ---8<--- Well, totally untested. You can refine to your case (eg. git clone + git checkout instead of curl...), but you get the idea. In this case, you're using ct-ng as a "backend" for your real build system, which in this case is your very, very minimalist "my-ct-ng" script. Hence, we call this script a "driver", because it "drives" a sub-process (here ct-ng), that is it prepares the environment, or some dirs/files... prior to running the actual program. That's exactly what "gcc" (the command) is: it is a compiler driver, that parses its arguments to see how it was called, and what sub-process it should call: actuall C compiler (cc1), C++ compiler (cc1plus), linker (ld) and so on... No, it's not in ct-ng's documentation, because it is not specific to ct-ng. It is a usually-accepted term (I guess). Sometime also referred to as a frontend, but it is does convey a different, although somewhat related. meaning. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq