diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-05-02 12:05:13 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-05-02 12:05:13 +0000 |
commit | ead73689db79fecc3e17215d100ab52ce4377657 (patch) | |
tree | f3decd3d843e222394b848805f0f88f74d153700 /src/arch | |
parent | d3ba4aaa245b1af50f70443ba01ec0baf883995f (diff) | |
download | coreboot-ead73689db79fecc3e17215d100ab52ce4377657.tar.xz |
add automatic payload compression method to LinuxBIOS
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2288 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/Config.lb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/arch/i386/Config.lb b/src/arch/i386/Config.lb index ebb014f525..e1722bed42 100644 --- a/src/arch/i386/Config.lb +++ b/src/arch/i386/Config.lb @@ -18,9 +18,22 @@ makerule nrv2b action "$(HOSTCC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 $< -o $@" end +makerule payload + depends "$(PAYLOAD)" + action "cp $< $@" +end + +makerule payload.nrv2b + depends "$(PAYLOAD) nrv2b" + action "./nrv2b e $(PAYLOAD) $@" +end + +makedefine PAYLOAD-1:=payload +makedefine PAYLOAD-$(CONFIG_COMPRESSED_ROM_STREAM):=payload.nrv2b + makerule linuxbios.rom - depends "linuxbios.strip buildrom" - action "./buildrom $< $@ $(PAYLOAD) $(ROM_IMAGE_SIZE) $(ROM_SECTION_SIZE)" + depends "linuxbios.strip buildrom $(PAYLOAD-1)" + action "./buildrom $< $@ $(PAYLOAD-1) $(ROM_IMAGE_SIZE) $(ROM_SECTION_SIZE)" end makerule crt0.S |