Skip to contentSkip to conversation

Introduce separate HOST and TARGET compilation steps.]

PATCH Luis R. Rodriguez 2 participants 2 messages Jul 1, 2009 6 messages not in the archive

lore
Share & tools
lore
#6 lore raw
In reply to a message not in the archive
Quoted 13 lines · Jon Loeliger
Quoted 7 lines · Luis R. Rodriguez
Quoted 3 lines · Jon Loeliger

Do you agree or disagree with me when I say that the regdbdump program might need to be compiled twice -- once for the host and once for the target?

Why?

The existing binary regulatory DB binary is verified on the host using these rules.  (This is from my version of the makefile, but they are there in the original too.):

Quoted 8 lines

   all: host target $(REG_BIN) $(BUILD_ALL) verify

   verify: $(REG_BIN) host/regdbdump
       $(NQ) '  CHK  $(REG_BIN)'
       $(Q)./host/regdbdump $(REG_BIN) >/dev/null

That is, as part of the host build process, the regdbdump tool is run *on the host*.

This helps to understand a little better some of your intentions, may be good to mention this as part of your patches. Hm, interesting... I suppose we don't want to just disable this check then.

Quoted 2 lines

Ultimately, the regdbdump utility may *also* be needed or wanted on the target too.

ACK.

Luis

#7 lore raw
Quoted 20 lines · Luis R. Rodriguez
Quoted 19 lines · Jon Loeliger
Quoted 7 lines · Luis R. Rodriguez
Quoted 3 lines · Jon Loeliger

Do you agree or disagree with me when I say that the regdbdump program might need to be compiled twice -- once for the host and once for the target?

Why?

The existing binary regulatory DB binary is verified on the host using these rules. (This is from my version of the makefile, but they are there in the original too.):

   all: host target $(REG_BIN) $(BUILD_ALL) verify

   verify: $(REG_BIN) host/regdbdump
       $(NQ) '  CHK  $(REG_BIN)'
       $(Q)./host/regdbdump $(REG_BIN) >/dev/null
Quoted 6 lines
Quoted 2 lines

That is, as part of the host build process, the regdbdump tool is run *on the host*.

This helps to understand a little better some of your intentions, may be good to mention this as part of your patches. Hm, interesting... I suppose we don't want to just disable this check then.

Luis,

Shall I supply more or different information than what was in my git log message?:

The regdbdump tool is really a host executable that is used during the build process. It could also be installed and used on the target, but two separate compilations are needed to achieve that goal.

Currently, regdbdump is only built for the target, and thus cross-compilation of the tool is really feasible without this patch (or one like it).

Though, we should s/feasible/infeasible/ there too. :-)

Quoted 6 lines
Quoted 2 lines

Ultimately, the regdbdump utility may *also* be needed or wanted on the target too.

ACK.

Luis

Thanks,
jdl