addvariant

How it works, even after reading the doc, I don’t understand if it
doesn’t work or if I don’t know how to use it.

I create a Rieter_misc directory. This will be my project level. I won’t
have a product level. Maybe it’s the problem!

I cd in it and then:
$addvariant -i Rieter_misc nto x86 so

Makefiles and common.mk are created but not the directories!

What’s wrong?

I didn’t really understand what init_lvl means?
As far as I understood, addvariant is, first, looking for a Makefile
with “LIST=…” int it. But, addvariant is supposed to create this
file. problem, no ?

Thanks,
Alain.

I always make my top level Makefile and common.mk by hand…then addvariant
works. At very least I believe you need a Makefile with ‘LIST=OS’ in it.

cheers,

Kris

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

How it works, even after reading the doc, I don’t understand if it
doesn’t work or if I don’t know how to use it.

I create a Rieter_misc directory. This will be my project level. I won’t
have a product level. Maybe it’s the problem!

I cd in it and then:
$addvariant -i Rieter_misc nto x86 so

Makefiles and common.mk are created but not the directories!

What’s wrong?

I didn’t really understand what init_lvl means?
As far as I understood, addvariant is, first, looking for a Makefile
with “LIST=…” int it. But, addvariant is supposed to create this
file. problem, no ?

Thanks,
Alain.


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate sucessful termination of their C programs.

  • Robert Firth

Kris Eric Warkentin a écrit :

I always make my top level Makefile and common.mk by hand…then addvariant
works. At very least I believe you need a Makefile with ‘LIST=OS’ in it.

cheers,

Kris

It’s what I though fisrt, but in this case, it must work the second time!

The generated Makefile contains:

LIST=nto
ifndef QRECURSE
QRECURSE=recurse.mk
ifdef QCONFIG
QRDIR=$(dir $(QCONFIG))
endif
endif
include $(QRDIR)$(QRECURSE)


Is it compatible with what addvariant is looking for?

Thanks,
Alain.

Ah…you were using addvariant -i to generate the initial Makefile, etc. I
assume that it must be okay but I’ve never seen LIST=nto before…I’ve always
seen either OS, CPU or VARIANT. You probably wanted to do ‘addvariant -i OS’
to get the desired results.

cheers,

Kris

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Kris Eric Warkentin a ecrit :

I always make my top level Makefile and common.mk by hand…then addvariant
works. At very least I believe you need a Makefile with ‘LIST=OS’ in it.

cheers,

Kris

It’s what I though fisrt, but in this case, it must work the second time!

The generated Makefile contains:

LIST=nto
ifndef QRECURSE
QRECURSE=recurse.mk
ifdef QCONFIG
QRDIR=$(dir $(QCONFIG))
endif
endif
include $(QRDIR)$(QRECURSE)



Is it compatible with what addvariant is looking for?

Thanks,
Alain.


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate sucessful termination of their C programs.

  • Robert Firth

Kris Eric Warkentin a écrit :

Ah…you were using addvariant -i to generate the initial Makefile, etc. I
assume that it must be okay but I’ve never seen LIST=nto before…I’ve always
seen either OS, CPU or VARIANT. You probably wanted to do ‘addvariant -i OS’
to get the desired results.

cheers,

Kris

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Kris Eric Warkentin a ecrit :

I always make my top level Makefile and common.mk by hand…then addvariant
works. At very least I believe you need a Makefile with ‘LIST=OS’ in it.

cheers,

Kris

It’s what I though fisrt, but in this case, it must work the second time!

The generated Makefile contains:

LIST=nto
ifndef QRECURSE
QRECURSE=recurse.mk
ifdef QCONFIG
QRDIR=$(dir $(QCONFIG))
endif
endif
include $(QRDIR)$(QRECURSE)

Is it compatible with what addvariant is looking for?

Thanks,
Alain.


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate sucessful termination of their C programs.

  • Robert Firth

Ok, I’ve understood what ‘ini_lvl’ means. In fact, the correct syntax for
addvariant is:

addvariant -i OS nto x86 o

The only problem is that addvariant use file talk about a CVS repository and create
RCS directories. In fact, I think it’s not necessary to create these directories
now. It will be done later during the import to the CVS.