It should break at all, but maybe exit is not enough, as it may not return a non-zero exit code. exit 1 might help. Better yet is just using the T2 function "abort":

hook_add postmake 5 abort

On 23.10.2009, at 06:50, Toan Pham wrote:

Rene,

That's exactly what i've been doing.  To enter the sandbox i added
hook in the premake in the file /target/<name>/pkg_linux26.conf, ie.

hook_add premake 5 "exit"

it works fine; however, i notice that when i try to add the same hook for postmake, postflist or finish, the build process does not break. Instead
it finishes building as usual.  I am not sure if that is normal.


Thank you.

Toan


On Thu, Oct 22, 2009 at 4:46 AM, Rene Rebe <[email protected]> wrote:
Hi,
On 21.10.2009, at 13:11, Jens Möller wrote:

Hi @all!

I would like to modify a linux kernel module. Unfortunately, the module package has a postlinux.conf that does not seem to be executed when I start a compile for that single package. Recompiling the whole kernel is not much
fun when developing a kernel module.

Is there a way to compile that single kernel module package?


In the past it was once possible to only build the third party modules by setting: SDEDEBUG_LINUX_SUBMODULES_ONLY, but due to changes in the kernel
build system I think this does not work correctly anymore. But it's
certainly fixable:
SDEDEBUG_LINUX_SUBMODULES_ONLY scripts/Build-Target -job 5-linux26 # etc.
...
However, you can also let the kernel build, and then enter the sandbox to
continue developing / fixing where the build stopped in your module:
cd src.linuux26*
./debuig.sh
and then also include the sub-module defines, like:
. debug.buildenv.<name of module>
and continue building it with something like eval $MAKE $makeopt # etc. as
appropriated for the module
Regards,
  René
--
  René Rebe, ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
http://exactcode.com | http://t2-project.org | http:// rene.rebe.name

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2



--
  René Rebe, ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
  http://exactcode.com | http://t2-project.org | http://rene.rebe.name

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to