123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*++
- Copyright (c) 2014 Minoca Corp. All Rights Reserved
- Module Name:
- ElfConv
- Abstract:
- This module builds the ElfConv utility, which converts an ELF image
- into a PE image. UEFI exclusively loads PE images, which is why the
- conversion is necessary. With certain restrictions (such as the lack
- of dynamic libraries) conversion is doable, though not a lot of fun.
- Author:
- Evan Green 10-Mar-2014
- Environment:
- Build
- --*/
- function build() {
- sources = [
- "elfc32.c",
- "elfconv.c",
- ];
- includes = [
- "$//uefi/include"
- ];
- app = {
- "label": "elfconv",
- "inputs": sources,
- "includes": includes,
- "build": TRUE
- };
- entries = application(app);
- tool = {
- "type": "tool",
- "name": "elfconv",
- "command": "$^//uefi/tools/elfconv/elfconv $ELFCONV_FLAGS -o $OUT $IN",
- "description": "Converting to PE - $IN"
- };
- return entries + [tool];
- }
- return build();
|