Merge pull request #318 from dicej/bootimage-lzma

fix bootimage lzma build
This commit is contained in:
Joshua Warner 2014-08-04 18:02:46 -06:00
commit bbf3382d3a

View File

@ -1851,10 +1851,6 @@ void writeBootImage2(Thread* t,
abort();
}
SymbolInfo bootimageSymbols[]
= {SymbolInfo(0, bootimageStart),
SymbolInfo(bootimageData.length, bootimageEnd)};
uint8_t* bootimage;
unsigned bootimageLength;
if (useLZMA) {
@ -1874,6 +1870,10 @@ void writeBootImage2(Thread* t,
bootimageLength = bootimageData.length;
}
SymbolInfo bootimageSymbols[]
= {SymbolInfo(0, bootimageStart),
SymbolInfo(bootimageLength, bootimageEnd)};
platform->writeObject(bootimageOutput,
Slice<SymbolInfo>(bootimageSymbols, 2),
Slice<const uint8_t>(bootimage, bootimageLength),