sm-sorcery AT lists.ibiblio.org
Subject: Discussion of Sorcery related topics
List archive
- From: "Jose Bernardo Silva" <jbs AT bandos.homelinux.com>
- To: sm-sorcery AT lists.ibiblio.org
- Subject: Re: [SM-Sorcery] on_cast linux cast_self
- Date: Tue, 3 Feb 2004 08:15:05 +0000
On Mon, 2 Feb 2004 11:15:54 +0000, Jose Bernardo Silva wrote
> Worf,
> What I did on a spell was to add a query on PREPARE asking the user
> if he wanted to build it for the running kernel (uname -r) or for
> the installed version of the linux spell. It seems to me that would
> be the best option, let the user choose. And if we could trap the
> uname call, it could easily be done inside sorcery.
This is the test I do in prim54's PREPARE:
-----------------------------------------------------
if ! grep -q TARGET_KERNEL $SPELL_CONFIG
then TARGET_KERNEL=$(installed_version linux) &&
if query "Would you like to build $SPELL for the running kernel (`uname
-r`)?" n
then TARGET_KERNEL=`uname -r`
fi
echo TARGET_KERNEL=$TARGET_KERNEL >> $SPELL_CONFIG
fi
-----------------------------------------------------
And in BUILD I generate the spell for KERNEL_TARGET:
-----------------------------------------------------
(
make KVER=$TARGET_KERNEL modules &&
prepare_install &&
make KVER=$TARGET_KERNEL install &&
mkdir -p /usr/lib/hotplug/firmware &&
cp ${SOURCE_CACHE}/${SOURCE2} /usr/lib/hotplug/firmware &&
depmod -ae $TARGET_KERNEL &&
message "Don't forget to enable CONFIG_FW_LOADER on your kernel!!"
) > $C_FIFO 2>&1
-----------------------------------------------------
Maybe this could be automated, added to the sorcery API in a easy to use way?
---
Jose Bernardo B R Silva | Source Mage GNU/Linux Section Guru
jbernardo AT sourcemage.org | http://www.sourcemage.org
http://counter.li.org #245602
http://cosmos.oninetspeed.pt/jose.bernardo
jbs AT bandos.homelinux.com
-
[SM-Sorcery] on_cast linux cast_self,
Treeve Jelbert, 02/01/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Wolfgang Scheicher, 02/02/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Jose Bernardo Silva, 02/02/2004
- Re: [SM-Sorcery] on_cast linux cast_self, Jose Bernardo Silva, 02/03/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Jose Bernardo Silva, 02/02/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Eric Schabell, 02/03/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Ladislav Hagara, 02/03/2004
- Re: [SM-Sorcery] on_cast linux cast_self, Wolfgang Scheicher, 02/03/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Eric Sandall, 02/03/2004
- Re: [SM-Sorcery] on_cast linux cast_self, Paul, 02/03/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Ladislav Hagara, 02/03/2004
-
Re: [SM-Sorcery] on_cast linux cast_self,
Wolfgang Scheicher, 02/02/2004
Archive powered by MHonArc 2.6.24.