Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Embedding a variable upon compile
2015-08-01, 08:00
Post: #4
RE: Embedding a variable upon compile
You can create an setting that returns a separate value that you set on compile time.
But I don't see how that is easier than creating a build script..

Code:
#!/bin/bash
echo #!ipxe > embed.ipxe
echo set serialspeed $1 >> embed.ipxe
cat commonscript.ipxe >> embed.ipxe
make $2 EMBED=embed.ipxe

This will combine a variable and the base script when this buildscript is run.
So you will only have one script and the rest is still automatic.

adding an embeded script - is the same as setting it in the binary itself - just much easier then any alternative.

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Embedding a variable upon compile - NiKiZe - 2015-08-01 08:00



User(s) browsing this thread: 2 Guest(s)