Makefile.core.def 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355
  1. AutoGen definitions Makefile.tpl;
  2. transform_data = {
  3. installdir = noinst;
  4. name = gensyminfo.sh;
  5. common = gensyminfo.sh.in;
  6. };
  7. transform_data = {
  8. installdir = noinst;
  9. name = genmod.sh;
  10. common = genmod.sh.in;
  11. };
  12. transform_data = {
  13. installdir = noinst;
  14. name = modinfo.sh;
  15. common = modinfo.sh.in;
  16. };
  17. transform_data = {
  18. installdir = platform;
  19. name = gmodule.pl;
  20. common = gmodule.pl.in;
  21. };
  22. transform_data = {
  23. installdir = platform;
  24. name = gdb_grub;
  25. common = gdb_grub.in;
  26. };
  27. transform_data = {
  28. installdir = platform;
  29. name = grub.chrp;
  30. common = boot/powerpc/grub.chrp.in;
  31. enable = powerpc_ieee1275;
  32. };
  33. transform_data = {
  34. installdir = platform;
  35. name = bootinfo.txt;
  36. common = boot/powerpc/bootinfo.txt.in;
  37. enable = powerpc_ieee1275;
  38. };
  39. kernel = {
  40. name = kernel;
  41. nostrip = emu;
  42. emu_ldflags = '-Wl,-r,-d';
  43. i386_efi_ldflags = '-Wl,-r,-d';
  44. i386_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
  45. x86_64_efi_ldflags = '-Wl,-r,-d';
  46. x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
  47. ia64_efi_cflags = '-fno-builtin -fpic -minline-int-divide-max-throughput';
  48. ia64_efi_ldflags = '-Wl,-r,-d';
  49. ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
  50. arm_efi_ldflags = '-Wl,-r,-d';
  51. arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
  52. arm64_efi_ldflags = '-Wl,-r,-d';
  53. arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';
  54. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  55. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
  56. i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
  57. i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
  58. i386_coreboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
  59. i386_coreboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
  60. i386_multiboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
  61. i386_multiboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
  62. i386_ieee1275_ldflags = '$(TARGET_IMG_LDFLAGS)';
  63. i386_ieee1275_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x10000';
  64. i386_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
  65. i386_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
  66. x86_64_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
  67. x86_64_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
  68. mips_loongson_ldflags = '-Wl,-Ttext,0x80200000';
  69. powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000';
  70. sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400';
  71. mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)';
  72. mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
  73. mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
  74. i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
  75. emu_cflags = '$(CFLAGS_GNULIB)';
  76. emu_cppflags = '$(CPPFLAGS_GNULIB)';
  77. arm_uboot_ldflags = '-Wl,-r,-d';
  78. arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
  79. i386_pc_startup = kern/i386/pc/startup.S;
  80. i386_efi_startup = kern/i386/efi/startup.S;
  81. x86_64_efi_startup = kern/x86_64/efi/startup.S;
  82. i386_xen_startup = kern/i386/xen/startup.S;
  83. x86_64_xen_startup = kern/x86_64/xen/startup.S;
  84. i386_qemu_startup = kern/i386/qemu/startup.S;
  85. i386_ieee1275_startup = kern/i386/ieee1275/startup.S;
  86. i386_coreboot_startup = kern/i386/coreboot/startup.S;
  87. i386_multiboot_startup = kern/i386/coreboot/startup.S;
  88. mips_startup = kern/mips/startup.S;
  89. sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S;
  90. powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S;
  91. arm_uboot_startup = kern/arm/uboot/startup.S;
  92. arm_efi_startup = kern/arm/efi/startup.S;
  93. arm64_efi_startup = kern/arm64/efi/startup.S;
  94. common = kern/command.c;
  95. common = kern/corecmd.c;
  96. common = kern/device.c;
  97. common = kern/disk.c;
  98. common = kern/dl.c;
  99. common = kern/env.c;
  100. common = kern/err.c;
  101. common = kern/file.c;
  102. common = kern/fs.c;
  103. common = kern/list.c;
  104. common = kern/main.c;
  105. common = kern/misc.c;
  106. common = kern/parser.c;
  107. common = kern/partition.c;
  108. common = kern/rescue_parser.c;
  109. common = kern/rescue_reader.c;
  110. common = kern/term.c;
  111. noemu = kern/compiler-rt.c;
  112. noemu = kern/mm.c;
  113. noemu = kern/time.c;
  114. noemu = kern/generic/millisleep.c;
  115. noemu_nodist = symlist.c;
  116. mips = kern/generic/rtc_get_time_ms.c;
  117. ieee1275 = disk/ieee1275/ofdisk.c;
  118. ieee1275 = kern/ieee1275/cmain.c;
  119. ieee1275 = kern/ieee1275/ieee1275.c;
  120. ieee1275 = kern/ieee1275/mmap.c;
  121. ieee1275 = kern/ieee1275/openfw.c;
  122. ieee1275 = term/ieee1275/console.c;
  123. ieee1275 = kern/ieee1275/init.c;
  124. uboot = disk/uboot/ubootdisk.c;
  125. uboot = kern/uboot/uboot.c;
  126. uboot = kern/uboot/init.c;
  127. uboot = kern/uboot/hw.c;
  128. uboot = term/uboot/console.c;
  129. terminfoinkernel = term/terminfo.c;
  130. terminfoinkernel = term/tparm.c;
  131. terminfoinkernel = commands/extcmd.c;
  132. terminfoinkernel = lib/arg.c;
  133. softdiv = lib/division.c;
  134. i386 = kern/i386/dl.c;
  135. i386_xen = kern/i386/dl.c;
  136. i386_coreboot = kern/i386/coreboot/init.c;
  137. i386_multiboot = kern/i386/coreboot/init.c;
  138. i386_qemu = kern/i386/qemu/init.c;
  139. i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c;
  140. i386_coreboot = video/i386/coreboot/cbfb.c;
  141. efi = disk/efi/efidisk.c;
  142. efi = kern/efi/efi.c;
  143. efi = kern/efi/init.c;
  144. efi = kern/efi/mm.c;
  145. efi = term/efi/console.c;
  146. efi = kern/acpi.c;
  147. efi = kern/efi/acpi.c;
  148. i386_coreboot = kern/i386/pc/acpi.c;
  149. i386_multiboot = kern/i386/pc/acpi.c;
  150. i386_coreboot = kern/acpi.c;
  151. i386_multiboot = kern/acpi.c;
  152. x86 = kern/i386/tsc.c;
  153. x86 = kern/i386/tsc_pit.c;
  154. i386_efi = kern/i386/efi/tsc.c;
  155. x86_64_efi = kern/i386/efi/tsc.c;
  156. i386_efi = kern/i386/tsc_pmtimer.c;
  157. i386_coreboot = kern/i386/tsc_pmtimer.c;
  158. x86_64_efi = kern/i386/tsc_pmtimer.c;
  159. i386_efi = kern/i386/efi/init.c;
  160. i386_efi = bus/pci.c;
  161. x86_64 = kern/x86_64/dl.c;
  162. x86_64_xen = kern/x86_64/dl.c;
  163. x86_64_efi = kern/x86_64/efi/callwrap.S;
  164. x86_64_efi = kern/i386/efi/init.c;
  165. x86_64_efi = bus/pci.c;
  166. xen = kern/i386/tsc.c;
  167. xen = kern/i386/xen/tsc.c;
  168. x86_64_xen = kern/x86_64/xen/hypercall.S;
  169. i386_xen = kern/i386/xen/hypercall.S;
  170. xen = kern/xen/init.c;
  171. xen = term/xen/console.c;
  172. xen = disk/xen/xendisk.c;
  173. xen = commands/boot.c;
  174. ia64_efi = kern/ia64/efi/startup.S;
  175. ia64_efi = kern/ia64/efi/init.c;
  176. ia64_efi = kern/ia64/dl.c;
  177. ia64_efi = kern/ia64/dl_helper.c;
  178. ia64_efi = kern/ia64/cache.c;
  179. arm_efi = kern/arm/efi/init.c;
  180. arm_efi = kern/arm/efi/misc.c;
  181. arm64_efi = kern/arm64/efi/init.c;
  182. i386_pc = kern/i386/pc/init.c;
  183. i386_pc = kern/i386/pc/mmap.c;
  184. i386_pc = term/i386/pc/console.c;
  185. i386_qemu = bus/pci.c;
  186. i386_qemu = kern/vga_init.c;
  187. i386_qemu = kern/i386/qemu/mmap.c;
  188. i386_coreboot = kern/i386/coreboot/mmap.c;
  189. i386_coreboot = kern/i386/coreboot/cbtable.c;
  190. i386_multiboot = kern/i386/multiboot_mmap.c;
  191. mips = kern/mips/cache.S;
  192. mips = kern/mips/dl.c;
  193. mips = kern/mips/init.c;
  194. mips_qemu_mips = kern/mips/qemu_mips/init.c;
  195. mips_qemu_mips = term/ns8250.c;
  196. mips_qemu_mips = term/serial.c;
  197. mips_qemu_mips = term/at_keyboard.c;
  198. mips_qemu_mips = commands/boot.c;
  199. mips_qemu_mips = commands/keylayouts.c;
  200. mips_qemu_mips = term/i386/pc/vga_text.c;
  201. mips_qemu_mips = kern/vga_init.c;
  202. mips_arc = kern/mips/arc/init.c;
  203. mips_arc = term/arc/console.c;
  204. mips_arc = disk/arc/arcdisk.c;
  205. mips_loongson = term/ns8250.c;
  206. mips_loongson = bus/bonito.c;
  207. mips_loongson = bus/cs5536.c;
  208. mips_loongson = bus/pci.c;
  209. mips_loongson = kern/mips/loongson/init.c;
  210. mips_loongson = term/at_keyboard.c;
  211. mips_loongson = commands/boot.c;
  212. mips_loongson = term/serial.c;
  213. mips_loongson = video/sm712.c;
  214. mips_loongson = video/sis315pro.c;
  215. mips_loongson = video/radeon_fuloong2e.c;
  216. mips_loongson = video/radeon_yeeloong3a.c;
  217. extra_dist = video/sm712_init.c;
  218. extra_dist = video/sis315_init.c;
  219. mips_loongson = commands/keylayouts.c;
  220. powerpc_ieee1275 = kern/powerpc/cache.S;
  221. powerpc_ieee1275 = kern/powerpc/dl.c;
  222. powerpc_ieee1275 = kern/powerpc/compiler-rt.S;
  223. sparc64_ieee1275 = kern/sparc64/cache.S;
  224. sparc64_ieee1275 = kern/sparc64/dl.c;
  225. sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
  226. arm = kern/arm/dl.c;
  227. arm = kern/arm/dl_helper.c;
  228. arm = kern/arm/cache_armv6.S;
  229. arm = kern/arm/cache_armv7.S;
  230. extra_dist = kern/arm/cache.S;
  231. arm = kern/arm/cache.c;
  232. arm = kern/arm/compiler-rt.S;
  233. arm64 = kern/arm64/cache.c;
  234. arm64 = kern/arm64/cache_flush.S;
  235. arm64 = kern/arm64/dl.c;
  236. arm64 = kern/arm64/dl_helper.c;
  237. emu = disk/host.c;
  238. emu = kern/emu/cache_s.S;
  239. emu = kern/emu/hostdisk.c;
  240. emu = osdep/unix/hostdisk.c;
  241. emu = osdep/exec.c;
  242. extra_dist = osdep/unix/exec.c;
  243. emu = osdep/devmapper/hostdisk.c;
  244. emu = osdep/hostdisk.c;
  245. emu = kern/emu/hostfs.c;
  246. emu = kern/emu/main.c;
  247. emu = kern/emu/argp_common.c;
  248. emu = kern/emu/misc.c;
  249. emu = kern/emu/mm.c;
  250. emu = kern/emu/time.c;
  251. emu = kern/emu/cache.c;
  252. emu = osdep/emuconsole.c;
  253. extra_dist = osdep/unix/emuconsole.c;
  254. extra_dist = osdep/windows/emuconsole.c;
  255. emu = osdep/dl.c;
  256. extra_dist = osdep/unix/dl.c;
  257. extra_dist = osdep/windows/dl.c;
  258. emu = osdep/sleep.c;
  259. emu = osdep/init.c;
  260. emu = osdep/emunet.c;
  261. extra_dist = osdep/linux/emunet.c;
  262. extra_dist = osdep/basic/emunet.c;
  263. emu = osdep/cputime.c;
  264. extra_dist = osdep/unix/cputime.c;
  265. extra_dist = osdep/windows/cputime.c;
  266. videoinkernel = term/gfxterm.c;
  267. videoinkernel = font/font.c;
  268. videoinkernel = font/font_cmd.c;
  269. videoinkernel = io/bufio.c;
  270. videoinkernel = video/fb/fbblit.c;
  271. videoinkernel = video/fb/fbfill.c;
  272. videoinkernel = video/fb/fbutil.c;
  273. videoinkernel = video/fb/video_fb.c;
  274. videoinkernel = video/video.c;
  275. extra_dist = kern/i386/int.S;
  276. extra_dist = kern/i386/realmode.S;
  277. extra_dist = boot/i386/pc/lzma_decode.S;
  278. extra_dist = kern/mips/cache_flush.S;
  279. };
  280. program = {
  281. name = grub-emu;
  282. mansection = 1;
  283. emu = kern/emu/full.c;
  284. emu_nodist = grub_emu_init.c;
  285. ldadd = 'kernel.exec$(EXEEXT)';
  286. ldadd = '$(MODULE_FILES)';
  287. ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
  288. enable = emu;
  289. };
  290. program = {
  291. name = grub-emu-lite;
  292. emu = kern/emu/lite.c;
  293. emu_nodist = symlist.c;
  294. ldadd = 'kernel.exec$(EXEEXT)';
  295. ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
  296. enable = emu;
  297. };
  298. image = {
  299. name = boot;
  300. i386_pc = boot/i386/pc/boot.S;
  301. i386_qemu = boot/i386/qemu/boot.S;
  302. sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
  303. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  304. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
  305. i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
  306. i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)';
  307. i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
  308. sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
  309. sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
  310. objcopyflags = '-O binary';
  311. enable = i386_pc;
  312. enable = i386_qemu;
  313. enable = sparc64_ieee1275;
  314. };
  315. image = {
  316. name = boot_hybrid;
  317. i386_pc = boot/i386/pc/boot.S;
  318. cppflags = '-DHYBRID_BOOT=1';
  319. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  320. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
  321. objcopyflags = '-O binary';
  322. enable = i386_pc;
  323. };
  324. image = {
  325. name = cdboot;
  326. i386_pc = boot/i386/pc/cdboot.S;
  327. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  328. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
  329. sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
  330. sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
  331. sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
  332. sparc64_ieee1275_cppflags = '-DCDBOOT=1';
  333. objcopyflags = '-O binary';
  334. enable = sparc64_ieee1275;
  335. enable = i386_pc;
  336. };
  337. image = {
  338. name = pxeboot;
  339. i386_pc = boot/i386/pc/pxeboot.S;
  340. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  341. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
  342. objcopyflags = '-O binary';
  343. enable = i386_pc;
  344. };
  345. image = {
  346. name = diskboot;
  347. i386_pc = boot/i386/pc/diskboot.S;
  348. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  349. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
  350. sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
  351. sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
  352. objcopyflags = '-O binary';
  353. enable = i386_pc;
  354. enable = sparc64_ieee1275;
  355. };
  356. image = {
  357. name = lnxboot;
  358. i386_pc = boot/i386/pc/lnxboot.S;
  359. i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
  360. i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
  361. objcopyflags = '-O binary';
  362. enable = i386_pc;
  363. };
  364. image = {
  365. name = xz_decompress;
  366. mips = boot/mips/startup_raw.S;
  367. common = boot/decompressor/minilib.c;
  368. common = boot/decompressor/xz.c;
  369. common = lib/xzembed/xz_dec_bcj.c;
  370. common = lib/xzembed/xz_dec_lzma2.c;
  371. common = lib/xzembed/xz_dec_stream.c;
  372. common = kern/compiler-rt.c;
  373. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
  374. objcopyflags = '-O binary';
  375. mips_ldflags = '-Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
  376. cflags = '-Wno-unreachable-code';
  377. enable = mips;
  378. };
  379. image = {
  380. name = none_decompress;
  381. mips = boot/mips/startup_raw.S;
  382. common = boot/decompressor/none.c;
  383. cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
  384. objcopyflags = '-O binary';
  385. mips_ldflags = '-Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
  386. enable = mips;
  387. };
  388. image = {
  389. name = lzma_decompress;
  390. i386_pc = boot/i386/pc/startup_raw.S;
  391. i386_pc_nodist = rs_decoder.h;
  392. objcopyflags = '-O binary';
  393. ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200';
  394. enable = i386_pc;
  395. };
  396. image = {
  397. name = fwstart;
  398. mips_loongson = boot/mips/loongson/fwstart.S;
  399. objcopyflags = '-O binary';
  400. ldflags = '-Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
  401. enable = mips_loongson;
  402. };
  403. image = {
  404. name = fwstart_fuloong2f;
  405. mips_loongson = boot/mips/loongson/fuloong2f.S;
  406. objcopyflags = '-O binary';
  407. ldflags = '-Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
  408. enable = mips_loongson;
  409. };
  410. module = {
  411. name = disk;
  412. common = lib/disk.c;
  413. extra_dist = kern/disk_common.c;
  414. };
  415. module = {
  416. name = trig;
  417. common_nodist = trigtables.c;
  418. extra_dist = gentrigtables.c;
  419. };
  420. module = {
  421. name = cs5536;
  422. x86 = bus/cs5536.c;
  423. enable = x86;
  424. };
  425. module = {
  426. name = lsspd;
  427. mips_loongson = commands/mips/loongson/lsspd.c;
  428. enable = mips_loongson;
  429. };
  430. module = {
  431. name = usb;
  432. common = bus/usb/usb.c;
  433. common = bus/usb/usbtrans.c;
  434. common = bus/usb/usbhub.c;
  435. enable = usb;
  436. };
  437. module = {
  438. name = usbserial_common;
  439. common = bus/usb/serial/common.c;
  440. enable = usb;
  441. };
  442. module = {
  443. name = usbserial_pl2303;
  444. common = bus/usb/serial/pl2303.c;
  445. enable = usb;
  446. };
  447. module = {
  448. name = usbserial_ftdi;
  449. common = bus/usb/serial/ftdi.c;
  450. enable = usb;
  451. };
  452. module = {
  453. name = usbserial_usbdebug;
  454. common = bus/usb/serial/usbdebug_late.c;
  455. enable = usb;
  456. };
  457. module = {
  458. name = uhci;
  459. common = bus/usb/uhci.c;
  460. enable = pci;
  461. };
  462. module = {
  463. name = ohci;
  464. common = bus/usb/ohci.c;
  465. enable = pci;
  466. };
  467. module = {
  468. name = ehci;
  469. common = bus/usb/ehci.c;
  470. enable = pci;
  471. };
  472. module = {
  473. name = pci;
  474. common = bus/pci.c;
  475. i386_ieee1275 = bus/i386/ieee1275/pci.c;
  476. enable = i386_pc;
  477. enable = i386_ieee1275;
  478. enable = i386_coreboot;
  479. enable = i386_multiboot;
  480. };
  481. module = {
  482. name = nativedisk;
  483. common = commands/nativedisk.c;
  484. enable = x86;
  485. enable = mips_loongson;
  486. enable = mips_qemu_mips;
  487. };
  488. module = {
  489. name = emupci;
  490. common = bus/emu/pci.c;
  491. common = commands/lspci.c;
  492. enable = emu;
  493. condition = COND_GRUB_EMU_PCI;
  494. };
  495. module = {
  496. name = lsdev;
  497. common = commands/arc/lsdev.c;
  498. enable = mips_arc;
  499. };
  500. module = {
  501. name = lsxen;
  502. common = commands/xen/lsxen.c;
  503. enable = xen;
  504. };
  505. module = {
  506. name = cmostest;
  507. common = commands/i386/cmostest.c;
  508. enable = cmos;
  509. };
  510. module = {
  511. name = cmosdump;
  512. common = commands/i386/cmosdump.c;
  513. enable = cmos;
  514. };
  515. module = {
  516. name = iorw;
  517. common = commands/iorw.c;
  518. enable = x86;
  519. };
  520. module = {
  521. name = cbtable;
  522. common = kern/i386/coreboot/cbtable.c;
  523. enable = i386_pc;
  524. enable = i386_efi;
  525. enable = i386_qemu;
  526. enable = i386_multiboot;
  527. enable = i386_ieee1275;
  528. enable = x86_64_efi;
  529. };
  530. module = {
  531. name = cbtime;
  532. common = commands/i386/coreboot/cb_timestamps.c;
  533. enable = x86;
  534. };
  535. module = {
  536. name = cbls;
  537. common = commands/i386/coreboot/cbls.c;
  538. enable = x86;
  539. };
  540. module = {
  541. name = cbmemc;
  542. common = term/i386/coreboot/cbmemc.c;
  543. enable = x86;
  544. };
  545. module = {
  546. name = regexp;
  547. common = commands/regexp.c;
  548. common = commands/wildcard.c;
  549. common = gnulib/regex.c;
  550. cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
  551. cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
  552. };
  553. module = {
  554. name = acpi;
  555. common = commands/acpi.c;
  556. i386_pc = kern/acpi.c;
  557. i386_pc = kern/i386/pc/acpi.c;
  558. enable = efi;
  559. enable = i386_pc;
  560. enable = i386_coreboot;
  561. enable = i386_multiboot;
  562. };
  563. module = {
  564. name = lsacpi;
  565. common = commands/lsacpi.c;
  566. enable = efi;
  567. enable = i386_pc;
  568. enable = i386_coreboot;
  569. enable = i386_multiboot;
  570. };
  571. module = {
  572. name = lsefisystab;
  573. common = commands/efi/lsefisystab.c;
  574. enable = efi;
  575. };
  576. module = {
  577. name = lssal;
  578. common = commands/efi/lssal.c;
  579. enable = efi;
  580. };
  581. module = {
  582. name = lsefimmap;
  583. common = commands/efi/lsefimmap.c;
  584. enable = efi;
  585. };
  586. module = {
  587. name = lsefi;
  588. common = commands/efi/lsefi.c;
  589. enable = efi;
  590. };
  591. module = {
  592. name = efifwsetup;
  593. efi = commands/efi/efifwsetup.c;
  594. enable = efi;
  595. };
  596. module = {
  597. name = blocklist;
  598. common = commands/blocklist.c;
  599. };
  600. module = {
  601. name = boot;
  602. common = commands/boot.c;
  603. i386_pc = lib/i386/pc/biosnum.c;
  604. enable = x86;
  605. enable = emu;
  606. enable = sparc64_ieee1275;
  607. enable = powerpc_ieee1275;
  608. enable = mips_arc;
  609. enable = ia64_efi;
  610. enable = arm_efi;
  611. enable = arm64_efi;
  612. enable = arm_uboot;
  613. };
  614. module = {
  615. name = cat;
  616. common = commands/cat.c;
  617. };
  618. module = {
  619. name = cmp;
  620. common = commands/cmp.c;
  621. };
  622. module = {
  623. name = configfile;
  624. common = commands/configfile.c;
  625. };
  626. module = {
  627. name = cpuid;
  628. common = commands/i386/cpuid.c;
  629. enable = x86;
  630. enable = i386_xen;
  631. enable = x86_64_xen;
  632. };
  633. module = {
  634. name = date;
  635. common = commands/date.c;
  636. };
  637. module = {
  638. name = drivemap;
  639. i386_pc = commands/i386/pc/drivemap.c;
  640. i386_pc = commands/i386/pc/drivemap_int13h.S;
  641. enable = i386_pc;
  642. };
  643. module = {
  644. name = echo;
  645. common = commands/echo.c;
  646. };
  647. module = {
  648. name = eval;
  649. common = commands/eval.c;
  650. };
  651. module = {
  652. name = extcmd;
  653. common = commands/extcmd.c;
  654. common = lib/arg.c;
  655. enable = terminfomodule;
  656. };
  657. module = {
  658. name = fixvideo;
  659. common = commands/efi/fixvideo.c;
  660. enable = i386_efi;
  661. enable = x86_64_efi;
  662. };
  663. module = {
  664. name = gptsync;
  665. common = commands/gptsync.c;
  666. };
  667. module = {
  668. name = halt;
  669. nopc = commands/halt.c;
  670. i386_pc = commands/i386/pc/halt.c;
  671. i386_pc = commands/acpihalt.c;
  672. i386_coreboot = commands/acpihalt.c;
  673. i386_multiboot = commands/acpihalt.c;
  674. i386_efi = commands/acpihalt.c;
  675. x86_64_efi = commands/acpihalt.c;
  676. i386_multiboot = lib/i386/halt.c;
  677. i386_coreboot = lib/i386/halt.c;
  678. i386_qemu = lib/i386/halt.c;
  679. xen = lib/xen/halt.c;
  680. efi = lib/efi/halt.c;
  681. ieee1275 = lib/ieee1275/halt.c;
  682. emu = lib/emu/halt.c;
  683. uboot = lib/uboot/halt.c;
  684. };
  685. module = {
  686. name = reboot;
  687. i386 = lib/i386/reboot.c;
  688. i386 = lib/i386/reboot_trampoline.S;
  689. ia64_efi = lib/efi/reboot.c;
  690. x86_64_efi = lib/efi/reboot.c;
  691. arm_efi = lib/efi/reboot.c;
  692. arm64_efi = lib/efi/reboot.c;
  693. powerpc_ieee1275 = lib/ieee1275/reboot.c;
  694. sparc64_ieee1275 = lib/ieee1275/reboot.c;
  695. mips_arc = lib/mips/arc/reboot.c;
  696. mips_loongson = lib/mips/loongson/reboot.c;
  697. mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
  698. xen = lib/xen/reboot.c;
  699. uboot = lib/uboot/reboot.c;
  700. common = commands/reboot.c;
  701. };
  702. module = {
  703. name = hashsum;
  704. common = commands/hashsum.c;
  705. };
  706. module = {
  707. name = verify;
  708. common = commands/verify.c;
  709. cflags = '$(CFLAGS_POSIX)';
  710. cppflags = '-I$(srcdir)/lib/posix_wrap';
  711. };
  712. module = {
  713. name = hdparm;
  714. common = commands/hdparm.c;
  715. common = lib/hexdump.c;
  716. enable = pci;
  717. enable = mips_qemu_mips;
  718. };
  719. module = {
  720. name = help;
  721. common = commands/help.c;
  722. };
  723. module = {
  724. name = hexdump;
  725. common = commands/hexdump.c;
  726. common = lib/hexdump.c;
  727. };
  728. module = {
  729. name = keystatus;
  730. common = commands/keystatus.c;
  731. };
  732. module = {
  733. name = loadbios;
  734. common = commands/efi/loadbios.c;
  735. enable = i386_efi;
  736. enable = x86_64_efi;
  737. };
  738. module = {
  739. name = loadenv;
  740. common = commands/loadenv.c;
  741. common = lib/envblk.c;
  742. };
  743. module = {
  744. name = ls;
  745. common = commands/ls.c;
  746. };
  747. module = {
  748. name = lsmmap;
  749. common = commands/lsmmap.c;
  750. };
  751. module = {
  752. name = lspci;
  753. common = commands/lspci.c;
  754. enable = pci;
  755. };
  756. module = {
  757. name = memrw;
  758. common = commands/memrw.c;
  759. };
  760. module = {
  761. name = minicmd;
  762. common = commands/minicmd.c;
  763. };
  764. module = {
  765. name = parttool;
  766. common = commands/parttool.c;
  767. };
  768. module = {
  769. name = password;
  770. common = commands/password.c;
  771. };
  772. module = {
  773. name = password_pbkdf2;
  774. common = commands/password_pbkdf2.c;
  775. };
  776. module = {
  777. name = play;
  778. x86 = commands/i386/pc/play.c;
  779. enable = x86;
  780. };
  781. module = {
  782. name = spkmodem;
  783. x86 = term/spkmodem.c;
  784. enable = x86;
  785. };
  786. module = {
  787. name = morse;
  788. x86 = term/morse.c;
  789. enable = x86;
  790. };
  791. module = {
  792. name = probe;
  793. common = commands/probe.c;
  794. };
  795. module = {
  796. name = read;
  797. common = commands/read.c;
  798. };
  799. module = {
  800. name = search;
  801. common = commands/search_wrap.c;
  802. extra_dist = commands/search.c;
  803. };
  804. module = {
  805. name = search_fs_file;
  806. common = commands/search_file.c;
  807. };
  808. module = {
  809. name = search_fs_uuid;
  810. common = commands/search_uuid.c;
  811. };
  812. module = {
  813. name = search_label;
  814. common = commands/search_label.c;
  815. };
  816. module = {
  817. name = setpci;
  818. common = commands/setpci.c;
  819. enable = pci;
  820. };
  821. module = {
  822. name = pcidump;
  823. common = commands/pcidump.c;
  824. enable = pci;
  825. };
  826. module = {
  827. name = sleep;
  828. common = commands/sleep.c;
  829. };
  830. module = {
  831. name = suspend;
  832. ieee1275 = commands/ieee1275/suspend.c;
  833. enable = i386_ieee1275;
  834. enable = powerpc_ieee1275;
  835. };
  836. module = {
  837. name = escc;
  838. ieee1275 = term/ieee1275/escc.c;
  839. enable = powerpc_ieee1275;
  840. };
  841. module = {
  842. name = terminal;
  843. common = commands/terminal.c;
  844. };
  845. module = {
  846. name = test;
  847. common = commands/test.c;
  848. };
  849. module = {
  850. name = true;
  851. common = commands/true.c;
  852. };
  853. module = {
  854. name = usbtest;
  855. common = commands/usbtest.c;
  856. enable = usb;
  857. };
  858. module = {
  859. name = videoinfo;
  860. common = commands/videoinfo.c;
  861. };
  862. module = {
  863. name = videotest;
  864. common = commands/videotest.c;
  865. };
  866. module = {
  867. name = xnu_uuid;
  868. common = commands/xnu_uuid.c;
  869. };
  870. module = {
  871. name = dm_nv;
  872. common = disk/dmraid_nvidia.c;
  873. };
  874. module = {
  875. name = loopback;
  876. common = disk/loopback.c;
  877. };
  878. module = {
  879. name = cryptodisk;
  880. common = disk/cryptodisk.c;
  881. };
  882. module = {
  883. name = luks;
  884. common = disk/luks.c;
  885. common = disk/AFSplitter.c;
  886. };
  887. module = {
  888. name = geli;
  889. common = disk/geli.c;
  890. };
  891. module = {
  892. name = lvm;
  893. common = disk/lvm.c;
  894. };
  895. module = {
  896. name = ldm;
  897. common = disk/ldm.c;
  898. };
  899. module = {
  900. name = mdraid09;
  901. common = disk/mdraid_linux.c;
  902. };
  903. module = {
  904. name = mdraid09_be;
  905. common = disk/mdraid_linux_be.c;
  906. };
  907. module = {
  908. name = mdraid1x;
  909. common = disk/mdraid1x_linux.c;
  910. };
  911. module = {
  912. name = diskfilter;
  913. common = disk/diskfilter.c;
  914. };
  915. module = {
  916. name = raid5rec;
  917. common = disk/raid5_recover.c;
  918. };
  919. module = {
  920. name = raid6rec;
  921. common = disk/raid6_recover.c;
  922. };
  923. module = {
  924. name = scsi;
  925. common = disk/scsi.c;
  926. };
  927. module = {
  928. name = memdisk;
  929. common = disk/memdisk.c;
  930. };
  931. module = {
  932. name = ata;
  933. common = disk/ata.c;
  934. enable = pci;
  935. enable = mips_qemu_mips;
  936. };
  937. module = {
  938. name = ahci;
  939. common = disk/ahci.c;
  940. enable = pci;
  941. };
  942. module = {
  943. name = pata;
  944. common = disk/pata.c;
  945. enable = pci;
  946. enable = mips_qemu_mips;
  947. };
  948. module = {
  949. name = biosdisk;
  950. i386_pc = disk/i386/pc/biosdisk.c;
  951. enable = i386_pc;
  952. };
  953. module = {
  954. name = usbms;
  955. common = disk/usbms.c;
  956. enable = usb;
  957. };
  958. module = {
  959. name = nand;
  960. ieee1275 = disk/ieee1275/nand.c;
  961. enable = i386_ieee1275;
  962. };
  963. module = {
  964. name = efiemu;
  965. common = efiemu/main.c;
  966. common = efiemu/i386/loadcore32.c;
  967. common = efiemu/i386/loadcore64.c;
  968. i386_pc = efiemu/i386/pc/cfgtables.c;
  969. i386_coreboot = efiemu/i386/pc/cfgtables.c;
  970. i386_multiboot = efiemu/i386/pc/cfgtables.c;
  971. i386_ieee1275 = efiemu/i386/nocfgtables.c;
  972. i386_qemu = efiemu/i386/nocfgtables.c;
  973. common = efiemu/mm.c;
  974. common = efiemu/loadcore_common.c;
  975. common = efiemu/symbols.c;
  976. common = efiemu/loadcore32.c;
  977. common = efiemu/loadcore64.c;
  978. common = efiemu/prepare32.c;
  979. common = efiemu/prepare64.c;
  980. common = efiemu/pnvram.c;
  981. common = efiemu/i386/coredetect.c;
  982. extra_dist = efiemu/prepare.c;
  983. extra_dist = efiemu/loadcore.c;
  984. extra_dist = efiemu/runtime/efiemu.S;
  985. extra_dist = efiemu/runtime/efiemu.c;
  986. enable = i386_pc;
  987. enable = i386_coreboot;
  988. enable = i386_ieee1275;
  989. enable = i386_multiboot;
  990. enable = i386_qemu;
  991. };
  992. module = {
  993. name = font;
  994. common = font/font.c;
  995. common = font/font_cmd.c;
  996. enable = videomodules;
  997. };
  998. module = {
  999. name = procfs;
  1000. common = fs/proc.c;
  1001. };
  1002. module = {
  1003. name = affs;
  1004. common = fs/affs.c;
  1005. };
  1006. module = {
  1007. name = afs;
  1008. common = fs/afs.c;
  1009. };
  1010. module = {
  1011. name = bfs;
  1012. common = fs/bfs.c;
  1013. };
  1014. module = {
  1015. name = btrfs;
  1016. common = fs/btrfs.c;
  1017. common = lib/crc.c;
  1018. cflags = '$(CFLAGS_POSIX) -Wno-undef';
  1019. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
  1020. };
  1021. module = {
  1022. name = archelp;
  1023. common = fs/archelp.c;
  1024. };
  1025. module = {
  1026. name = cbfs;
  1027. common = fs/cbfs.c;
  1028. };
  1029. module = {
  1030. name = cpio;
  1031. common = fs/cpio.c;
  1032. };
  1033. module = {
  1034. name = cpio_be;
  1035. common = fs/cpio_be.c;
  1036. };
  1037. module = {
  1038. name = newc;
  1039. common = fs/newc.c;
  1040. };
  1041. module = {
  1042. name = odc;
  1043. common = fs/odc.c;
  1044. };
  1045. module = {
  1046. name = ext2;
  1047. common = fs/ext2.c;
  1048. };
  1049. module = {
  1050. name = fat;
  1051. common = fs/fat.c;
  1052. };
  1053. module = {
  1054. name = exfat;
  1055. common = fs/exfat.c;
  1056. };
  1057. module = {
  1058. name = fshelp;
  1059. common = fs/fshelp.c;
  1060. };
  1061. module = {
  1062. name = hfs;
  1063. common = fs/hfs.c;
  1064. };
  1065. module = {
  1066. name = hfsplus;
  1067. common = fs/hfsplus.c;
  1068. };
  1069. module = {
  1070. name = hfspluscomp;
  1071. common = fs/hfspluscomp.c;
  1072. };
  1073. module = {
  1074. name = iso9660;
  1075. common = fs/iso9660.c;
  1076. };
  1077. module = {
  1078. name = jfs;
  1079. common = fs/jfs.c;
  1080. };
  1081. module = {
  1082. name = minix;
  1083. common = fs/minix.c;
  1084. };
  1085. module = {
  1086. name = minix2;
  1087. common = fs/minix2.c;
  1088. };
  1089. module = {
  1090. name = minix3;
  1091. common = fs/minix3.c;
  1092. };
  1093. module = {
  1094. name = minix_be;
  1095. common = fs/minix_be.c;
  1096. };
  1097. module = {
  1098. name = minix2_be;
  1099. common = fs/minix2_be.c;
  1100. };
  1101. module = {
  1102. name = minix3_be;
  1103. common = fs/minix3_be.c;
  1104. };
  1105. module = {
  1106. name = nilfs2;
  1107. common = fs/nilfs2.c;
  1108. };
  1109. module = {
  1110. name = ntfs;
  1111. common = fs/ntfs.c;
  1112. };
  1113. module = {
  1114. name = ntfscomp;
  1115. common = fs/ntfscomp.c;
  1116. };
  1117. module = {
  1118. name = reiserfs;
  1119. common = fs/reiserfs.c;
  1120. };
  1121. module = {
  1122. name = romfs;
  1123. common = fs/romfs.c;
  1124. };
  1125. module = {
  1126. name = sfs;
  1127. common = fs/sfs.c;
  1128. };
  1129. module = {
  1130. name = squash4;
  1131. common = fs/squash4.c;
  1132. cflags = '$(CFLAGS_POSIX) -Wno-undef';
  1133. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
  1134. };
  1135. module = {
  1136. name = tar;
  1137. common = fs/tar.c;
  1138. };
  1139. module = {
  1140. name = udf;
  1141. common = fs/udf.c;
  1142. };
  1143. module = {
  1144. name = ufs1;
  1145. common = fs/ufs.c;
  1146. };
  1147. module = {
  1148. name = ufs1_be;
  1149. common = fs/ufs_be.c;
  1150. };
  1151. module = {
  1152. name = ufs2;
  1153. common = fs/ufs2.c;
  1154. };
  1155. module = {
  1156. name = xfs;
  1157. common = fs/xfs.c;
  1158. };
  1159. module = {
  1160. name = zfs;
  1161. common = fs/zfs/zfs.c;
  1162. common = fs/zfs/zfs_lzjb.c;
  1163. common = fs/zfs/zfs_lz4.c;
  1164. common = fs/zfs/zfs_sha256.c;
  1165. common = fs/zfs/zfs_fletcher.c;
  1166. };
  1167. module = {
  1168. name = zfscrypt;
  1169. common = fs/zfs/zfscrypt.c;
  1170. };
  1171. module = {
  1172. name = zfsinfo;
  1173. common = fs/zfs/zfsinfo.c;
  1174. };
  1175. module = {
  1176. name = macbless;
  1177. common = commands/macbless.c;
  1178. };
  1179. module = {
  1180. name = pxe;
  1181. i386_pc = net/drivers/i386/pc/pxe.c;
  1182. enable = i386_pc;
  1183. };
  1184. module = {
  1185. name = gettext;
  1186. common = gettext/gettext.c;
  1187. };
  1188. module = {
  1189. name = gfxmenu;
  1190. common = gfxmenu/gfxmenu.c;
  1191. common = gfxmenu/view.c;
  1192. common = gfxmenu/font.c;
  1193. common = gfxmenu/icon_manager.c;
  1194. common = gfxmenu/theme_loader.c;
  1195. common = gfxmenu/widget-box.c;
  1196. common = gfxmenu/gui_canvas.c;
  1197. common = gfxmenu/gui_circular_progress.c;
  1198. common = gfxmenu/gui_box.c;
  1199. common = gfxmenu/gui_label.c;
  1200. common = gfxmenu/gui_list.c;
  1201. common = gfxmenu/gui_image.c;
  1202. common = gfxmenu/gui_progress_bar.c;
  1203. common = gfxmenu/gui_util.c;
  1204. common = gfxmenu/gui_string_util.c;
  1205. };
  1206. module = {
  1207. name = hello;
  1208. common = hello/hello.c;
  1209. };
  1210. module = {
  1211. name = gzio;
  1212. common = io/gzio.c;
  1213. };
  1214. module = {
  1215. name = offsetio;
  1216. common = io/offset.c;
  1217. };
  1218. module = {
  1219. name = bufio;
  1220. common = io/bufio.c;
  1221. enable = videomodules;
  1222. };
  1223. module = {
  1224. name = elf;
  1225. common = kern/elf.c;
  1226. extra_dist = kern/elfXX.c;
  1227. };
  1228. module = {
  1229. name = crypto;
  1230. common = lib/crypto.c;
  1231. extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
  1232. };
  1233. module = {
  1234. name = pbkdf2;
  1235. common = lib/pbkdf2.c;
  1236. };
  1237. module = {
  1238. name = relocator;
  1239. common = lib/relocator.c;
  1240. x86 = lib/i386/relocator16.S;
  1241. x86 = lib/i386/relocator32.S;
  1242. x86 = lib/i386/relocator64.S;
  1243. i386 = lib/i386/relocator_asm.S;
  1244. x86_64 = lib/x86_64/relocator_asm.S;
  1245. i386_xen = lib/i386/relocator_asm.S;
  1246. x86_64_xen = lib/x86_64/relocator_asm.S;
  1247. x86 = lib/i386/relocator.c;
  1248. x86 = lib/i386/relocator_common_c.c;
  1249. ieee1275 = lib/ieee1275/relocator.c;
  1250. efi = lib/efi/relocator.c;
  1251. mips = lib/mips/relocator_asm.S;
  1252. mips = lib/mips/relocator.c;
  1253. powerpc = lib/powerpc/relocator_asm.S;
  1254. powerpc = lib/powerpc/relocator.c;
  1255. xen = lib/xen/relocator.c;
  1256. i386_xen = lib/i386/xen/relocator.S;
  1257. x86_64_xen = lib/x86_64/xen/relocator.S;
  1258. xen = lib/i386/relocator_common_c.c;
  1259. extra_dist = lib/i386/relocator_common.S;
  1260. extra_dist = kern/powerpc/cache_flush.S;
  1261. enable = mips;
  1262. enable = powerpc;
  1263. enable = x86;
  1264. enable = xen;
  1265. };
  1266. module = {
  1267. name = datetime;
  1268. cmos = lib/cmos_datetime.c;
  1269. efi = lib/efi/datetime.c;
  1270. uboot = lib/uboot/datetime.c;
  1271. sparc64_ieee1275 = lib/ieee1275/datetime.c;
  1272. powerpc_ieee1275 = lib/ieee1275/datetime.c;
  1273. sparc64_ieee1275 = lib/ieee1275/cmos.c;
  1274. powerpc_ieee1275 = lib/ieee1275/cmos.c;
  1275. xen = lib/xen/datetime.c;
  1276. mips_arc = lib/arc/datetime.c;
  1277. enable = noemu;
  1278. };
  1279. module = {
  1280. name = setjmp;
  1281. common = lib/setjmp.S;
  1282. extra_dist = lib/i386/setjmp.S;
  1283. extra_dist = lib/mips/setjmp.S;
  1284. extra_dist = lib/x86_64/setjmp.S;
  1285. extra_dist = lib/sparc64/setjmp.S;
  1286. extra_dist = lib/powerpc/setjmp.S;
  1287. extra_dist = lib/ia64/setjmp.S;
  1288. extra_dist = lib/ia64/longjmp.S;
  1289. extra_dist = lib/arm/setjmp.S;
  1290. extra_dist = lib/arm64/setjmp.S;
  1291. };
  1292. module = {
  1293. name = aout;
  1294. common = loader/aout.c;
  1295. enable = x86;
  1296. };
  1297. module = {
  1298. name = bsd;
  1299. x86 = loader/i386/bsd.c;
  1300. x86 = loader/i386/bsd32.c;
  1301. x86 = loader/i386/bsd64.c;
  1302. extra_dist = loader/i386/bsdXX.c;
  1303. extra_dist = loader/i386/bsd_pagetable.c;
  1304. enable = x86;
  1305. };
  1306. module = {
  1307. name = plan9;
  1308. i386_pc = loader/i386/pc/plan9.c;
  1309. enable = i386_pc;
  1310. };
  1311. module = {
  1312. name = linux16;
  1313. common = loader/i386/pc/linux.c;
  1314. common = loader/linux.c;
  1315. common = lib/cmdline.c;
  1316. enable = x86;
  1317. };
  1318. module = {
  1319. name = ntldr;
  1320. i386_pc = loader/i386/pc/ntldr.c;
  1321. enable = i386_pc;
  1322. };
  1323. module = {
  1324. name = truecrypt;
  1325. i386_pc = loader/i386/pc/truecrypt.c;
  1326. enable = i386_pc;
  1327. };
  1328. module = {
  1329. name = freedos;
  1330. i386_pc = loader/i386/pc/freedos.c;
  1331. enable = i386_pc;
  1332. };
  1333. module = {
  1334. name = pxechain;
  1335. i386_pc = loader/i386/pc/pxechainloader.c;
  1336. enable = i386_pc;
  1337. };
  1338. module = {
  1339. name = multiboot2;
  1340. cppflags = "-DGRUB_USE_MULTIBOOT2";
  1341. common = loader/multiboot.c;
  1342. common = lib/cmdline.c;
  1343. common = loader/multiboot_mbi2.c;
  1344. enable = x86;
  1345. enable = mips;
  1346. };
  1347. module = {
  1348. name = multiboot;
  1349. common = loader/multiboot.c;
  1350. common = lib/cmdline.c;
  1351. x86 = loader/i386/multiboot_mbi.c;
  1352. extra_dist = loader/multiboot_elfxx.c;
  1353. enable = x86;
  1354. };
  1355. module = {
  1356. name = xen_boot;
  1357. common = lib/cmdline.c;
  1358. arm64 = loader/arm64/xen_boot.c;
  1359. enable = arm64;
  1360. };
  1361. module = {
  1362. name = linux;
  1363. x86 = loader/i386/linux.c;
  1364. xen = loader/i386/xen.c;
  1365. i386_pc = lib/i386/pc/vesa_modes_table.c;
  1366. mips = loader/mips/linux.c;
  1367. powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
  1368. sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
  1369. ia64_efi = loader/ia64/efi/linux.c;
  1370. arm = loader/arm/linux.c;
  1371. arm64 = loader/arm64/linux.c;
  1372. common = loader/linux.c;
  1373. common = lib/cmdline.c;
  1374. enable = noemu;
  1375. };
  1376. module = {
  1377. name = fdt;
  1378. arm64 = loader/arm64/fdt.c;
  1379. common = lib/fdt.c;
  1380. enable = fdt;
  1381. };
  1382. module = {
  1383. name = xnu;
  1384. x86 = loader/xnu_resume.c;
  1385. x86 = loader/i386/xnu.c;
  1386. x86 = loader/xnu.c;
  1387. /* Code is pretty generic but relies on RNG which
  1388. is available only on few platforms. It's not a
  1389. big deal as xnu needs ACPI anyway and we have
  1390. RNG on all platforms with ACPI.
  1391. */
  1392. enable = i386_multiboot;
  1393. enable = i386_coreboot;
  1394. enable = i386_pc;
  1395. enable = i386_efi;
  1396. enable = x86_64_efi;
  1397. };
  1398. module = {
  1399. name = random;
  1400. x86 = lib/i386/random.c;
  1401. common = lib/random.c;
  1402. i386_multiboot = kern/i386/tsc_pmtimer.c;
  1403. i386_coreboot = kern/i386/tsc_pmtimer.c;
  1404. i386_pc = kern/i386/tsc_pmtimer.c;
  1405. enable = i386_multiboot;
  1406. enable = i386_coreboot;
  1407. enable = i386_pc;
  1408. enable = i386_efi;
  1409. enable = x86_64_efi;
  1410. };
  1411. module = {
  1412. name = macho;
  1413. common = loader/macho.c;
  1414. common = loader/macho32.c;
  1415. common = loader/macho64.c;
  1416. common = loader/lzss.c;
  1417. extra_dist = loader/machoXX.c;
  1418. };
  1419. module = {
  1420. name = appleldr;
  1421. common = loader/efi/appleloader.c;
  1422. enable = i386_efi;
  1423. enable = x86_64_efi;
  1424. };
  1425. module = {
  1426. name = chain;
  1427. efi = loader/efi/chainloader.c;
  1428. i386_pc = loader/i386/pc/chainloader.c;
  1429. i386_coreboot = loader/i386/coreboot/chainloader.c;
  1430. i386_coreboot = lib/LzmaDec.c;
  1431. enable = i386_pc;
  1432. enable = i386_coreboot;
  1433. enable = efi;
  1434. };
  1435. module = {
  1436. name = mmap;
  1437. common = mmap/mmap.c;
  1438. x86 = mmap/i386/uppermem.c;
  1439. x86 = mmap/i386/mmap.c;
  1440. i386_pc = mmap/i386/pc/mmap.c;
  1441. i386_pc = mmap/i386/pc/mmap_helper.S;
  1442. efi = mmap/efi/mmap.c;
  1443. mips = mmap/mips/uppermem.c;
  1444. enable = x86;
  1445. enable = ia64_efi;
  1446. enable = arm_efi;
  1447. enable = arm64_efi;
  1448. enable = mips;
  1449. };
  1450. module = {
  1451. name = normal;
  1452. common = normal/main.c;
  1453. common = normal/cmdline.c;
  1454. common = normal/dyncmd.c;
  1455. common = normal/auth.c;
  1456. common = normal/autofs.c;
  1457. common = normal/color.c;
  1458. common = normal/completion.c;
  1459. common = normal/datetime.c;
  1460. common = normal/menu.c;
  1461. common = normal/menu_entry.c;
  1462. common = normal/menu_text.c;
  1463. common = normal/misc.c;
  1464. common = normal/crypto.c;
  1465. common = normal/term.c;
  1466. common = normal/context.c;
  1467. common = normal/charset.c;
  1468. common = lib/getline.c;
  1469. common = script/main.c;
  1470. common = script/script.c;
  1471. common = script/execute.c;
  1472. common = script/function.c;
  1473. common = script/lexer.c;
  1474. common = script/argv.c;
  1475. common = commands/menuentry.c;
  1476. common = unidata.c;
  1477. common_nodist = grub_script.tab.c;
  1478. common_nodist = grub_script.yy.c;
  1479. common_nodist = grub_script.tab.h;
  1480. common_nodist = grub_script.yy.h;
  1481. extra_dist = script/yylex.l;
  1482. extra_dist = script/parser.y;
  1483. cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
  1484. cppflags = '$(CPPFLAGS_POSIX)';
  1485. };
  1486. module = {
  1487. name = part_acorn;
  1488. common = partmap/acorn.c;
  1489. };
  1490. module = {
  1491. name = part_amiga;
  1492. common = partmap/amiga.c;
  1493. };
  1494. module = {
  1495. name = part_apple;
  1496. common = partmap/apple.c;
  1497. };
  1498. module = {
  1499. name = part_gpt;
  1500. common = partmap/gpt.c;
  1501. };
  1502. module = {
  1503. name = part_msdos;
  1504. common = partmap/msdos.c;
  1505. };
  1506. module = {
  1507. name = part_sun;
  1508. common = partmap/sun.c;
  1509. };
  1510. module = {
  1511. name = part_plan;
  1512. common = partmap/plan.c;
  1513. };
  1514. module = {
  1515. name = part_dvh;
  1516. common = partmap/dvh.c;
  1517. };
  1518. module = {
  1519. name = part_bsd;
  1520. common = partmap/bsdlabel.c;
  1521. };
  1522. module = {
  1523. name = part_sunpc;
  1524. common = partmap/sunpc.c;
  1525. };
  1526. module = {
  1527. name = part_dfly;
  1528. common = partmap/dfly.c;
  1529. };
  1530. module = {
  1531. name = msdospart;
  1532. common = parttool/msdospart.c;
  1533. };
  1534. module = {
  1535. name = at_keyboard;
  1536. common = term/at_keyboard.c;
  1537. enable = x86;
  1538. };
  1539. module = {
  1540. name = gfxterm;
  1541. common = term/gfxterm.c;
  1542. enable = videomodules;
  1543. };
  1544. module = {
  1545. name = gfxterm_background;
  1546. common = term/gfxterm_background.c;
  1547. };
  1548. module = {
  1549. name = serial;
  1550. common = term/serial.c;
  1551. x86 = term/ns8250.c;
  1552. ieee1275 = term/ieee1275/serial.c;
  1553. mips_arc = term/arc/serial.c;
  1554. efi = term/efi/serial.c;
  1555. enable = terminfomodule;
  1556. enable = ieee1275;
  1557. enable = mips_arc;
  1558. };
  1559. module = {
  1560. name = sendkey;
  1561. i386_pc = commands/i386/pc/sendkey.c;
  1562. enable = i386_pc;
  1563. };
  1564. module = {
  1565. name = terminfo;
  1566. common = term/terminfo.c;
  1567. common = term/tparm.c;
  1568. enable = terminfomodule;
  1569. };
  1570. module = {
  1571. name = usb_keyboard;
  1572. common = term/usb_keyboard.c;
  1573. enable = usb;
  1574. };
  1575. module = {
  1576. name = vga;
  1577. common = video/i386/pc/vga.c;
  1578. enable = i386_pc;
  1579. };
  1580. module = {
  1581. name = vga_text;
  1582. common = term/i386/pc/vga_text.c;
  1583. enable = i386_pc;
  1584. };
  1585. module = {
  1586. name = mda_text;
  1587. common = term/i386/pc/mda_text.c;
  1588. enable = i386_pc;
  1589. enable = i386_coreboot_multiboot_qemu;
  1590. };
  1591. module = {
  1592. name = video_cirrus;
  1593. x86 = video/cirrus.c;
  1594. enable = x86;
  1595. };
  1596. module = {
  1597. name = video_bochs;
  1598. x86 = video/bochs.c;
  1599. enable = x86;
  1600. };
  1601. module = {
  1602. name = functional_test;
  1603. common = tests/lib/functional_test.c;
  1604. common = tests/lib/test.c;
  1605. common = tests/checksums.h;
  1606. common = tests/video_checksum.c;
  1607. common = tests/fake_input.c;
  1608. common = video/capture.c;
  1609. };
  1610. module = {
  1611. name = exfctest;
  1612. common = tests/example_functional_test.c;
  1613. };
  1614. module = {
  1615. name = setjmp_test;
  1616. common = tests/setjmp_test.c;
  1617. };
  1618. module = {
  1619. name = signature_test;
  1620. common = tests/signature_test.c;
  1621. common = tests/signatures.h;
  1622. };
  1623. module = {
  1624. name = sleep_test;
  1625. common = tests/sleep_test.c;
  1626. };
  1627. module = {
  1628. name = xnu_uuid_test;
  1629. common = tests/xnu_uuid_test.c;
  1630. };
  1631. module = {
  1632. name = pbkdf2_test;
  1633. common = tests/pbkdf2_test.c;
  1634. };
  1635. module = {
  1636. name = legacy_password_test;
  1637. common = tests/legacy_password_test.c;
  1638. enable = i386_pc;
  1639. enable = i386_efi;
  1640. enable = x86_64_efi;
  1641. enable = emu;
  1642. enable = xen;
  1643. };
  1644. module = {
  1645. name = div;
  1646. common = lib/division.c;
  1647. enable = no_softdiv;
  1648. };
  1649. module = {
  1650. name = div_test;
  1651. common = tests/div_test.c;
  1652. };
  1653. module = {
  1654. name = mul_test;
  1655. common = tests/mul_test.c;
  1656. };
  1657. module = {
  1658. name = shift_test;
  1659. common = tests/shift_test.c;
  1660. };
  1661. module = {
  1662. name = cmp_test;
  1663. common = tests/cmp_test.c;
  1664. };
  1665. module = {
  1666. name = ctz_test;
  1667. common = tests/ctz_test.c;
  1668. };
  1669. module = {
  1670. name = bswap_test;
  1671. common = tests/bswap_test.c;
  1672. };
  1673. module = {
  1674. name = videotest_checksum;
  1675. common = tests/videotest_checksum.c;
  1676. };
  1677. module = {
  1678. name = gfxterm_menu;
  1679. common = tests/gfxterm_menu.c;
  1680. };
  1681. module = {
  1682. name = cmdline_cat_test;
  1683. common = tests/cmdline_cat_test.c;
  1684. };
  1685. module = {
  1686. name = bitmap;
  1687. common = video/bitmap.c;
  1688. };
  1689. module = {
  1690. name = bitmap_scale;
  1691. common = video/bitmap_scale.c;
  1692. };
  1693. module = {
  1694. name = efi_gop;
  1695. efi = video/efi_gop.c;
  1696. enable = efi;
  1697. };
  1698. module = {
  1699. name = efi_uga;
  1700. efi = video/efi_uga.c;
  1701. enable = i386_efi;
  1702. enable = x86_64_efi;
  1703. };
  1704. module = {
  1705. name = jpeg;
  1706. common = video/readers/jpeg.c;
  1707. };
  1708. module = {
  1709. name = png;
  1710. common = video/readers/png.c;
  1711. };
  1712. module = {
  1713. name = tga;
  1714. common = video/readers/tga.c;
  1715. };
  1716. module = {
  1717. name = vbe;
  1718. common = video/i386/pc/vbe.c;
  1719. enable = i386_pc;
  1720. };
  1721. module = {
  1722. name = video_fb;
  1723. common = video/fb/video_fb.c;
  1724. common = video/fb/fbblit.c;
  1725. common = video/fb/fbfill.c;
  1726. common = video/fb/fbutil.c;
  1727. enable = videomodules;
  1728. };
  1729. module = {
  1730. name = video;
  1731. common = video/video.c;
  1732. enable = videomodules;
  1733. };
  1734. module = {
  1735. name = video_colors;
  1736. common = video/colors.c;
  1737. };
  1738. module = {
  1739. name = ieee1275_fb;
  1740. ieee1275 = video/ieee1275.c;
  1741. enable = powerpc_ieee1275;
  1742. };
  1743. module = {
  1744. name = sdl;
  1745. emu = video/emu/sdl.c;
  1746. enable = emu;
  1747. condition = COND_GRUB_EMU_SDL;
  1748. };
  1749. module = {
  1750. name = datehook;
  1751. common = hook/datehook.c;
  1752. };
  1753. module = {
  1754. name = net;
  1755. common = net/net.c;
  1756. common = net/dns.c;
  1757. common = net/bootp.c;
  1758. common = net/ip.c;
  1759. common = net/udp.c;
  1760. common = net/tcp.c;
  1761. common = net/icmp.c;
  1762. common = net/icmp6.c;
  1763. common = net/ethernet.c;
  1764. common = net/arp.c;
  1765. common = net/netbuff.c;
  1766. };
  1767. module = {
  1768. name = tftp;
  1769. common = net/tftp.c;
  1770. };
  1771. module = {
  1772. name = http;
  1773. common = net/http.c;
  1774. };
  1775. module = {
  1776. name = ofnet;
  1777. common = net/drivers/ieee1275/ofnet.c;
  1778. enable = ieee1275;
  1779. };
  1780. module = {
  1781. name = ubootnet;
  1782. common = net/drivers/uboot/ubootnet.c;
  1783. enable = uboot;
  1784. };
  1785. module = {
  1786. name = efinet;
  1787. common = net/drivers/efi/efinet.c;
  1788. enable = efi;
  1789. };
  1790. module = {
  1791. name = emunet;
  1792. emu = net/drivers/emu/emunet.c;
  1793. enable = emu;
  1794. };
  1795. module = {
  1796. name = legacycfg;
  1797. common = commands/legacycfg.c;
  1798. common = lib/legacy_parse.c;
  1799. emu = lib/i386/pc/vesa_modes_table.c;
  1800. i386_efi = lib/i386/pc/vesa_modes_table.c;
  1801. x86_64_efi = lib/i386/pc/vesa_modes_table.c;
  1802. xen = lib/i386/pc/vesa_modes_table.c;
  1803. enable = i386_pc;
  1804. enable = i386_efi;
  1805. enable = x86_64_efi;
  1806. enable = emu;
  1807. enable = xen;
  1808. };
  1809. module = {
  1810. name = syslinuxcfg;
  1811. common = lib/syslinux_parse.c;
  1812. common = commands/syslinuxcfg.c;
  1813. };
  1814. module = {
  1815. name = test_blockarg;
  1816. common = tests/test_blockarg.c;
  1817. };
  1818. module = {
  1819. name = xzio;
  1820. common = io/xzio.c;
  1821. common = lib/xzembed/xz_dec_bcj.c;
  1822. common = lib/xzembed/xz_dec_lzma2.c;
  1823. common = lib/xzembed/xz_dec_stream.c;
  1824. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
  1825. cflags='-Wno-unreachable-code';
  1826. };
  1827. module = {
  1828. name = lzopio;
  1829. common = io/lzopio.c;
  1830. common = lib/minilzo/minilzo.c;
  1831. cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
  1832. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
  1833. };
  1834. module = {
  1835. name = testload;
  1836. common = commands/testload.c;
  1837. };
  1838. module = {
  1839. name = backtrace;
  1840. x86 = lib/i386/backtrace.c;
  1841. i386_xen = lib/i386/backtrace.c;
  1842. x86_64_xen = lib/i386/backtrace.c;
  1843. common = lib/backtrace.c;
  1844. enable = x86;
  1845. enable = i386_xen;
  1846. enable = x86_64_xen;
  1847. };
  1848. module = {
  1849. name = lsapm;
  1850. common = commands/i386/pc/lsapm.c;
  1851. enable = i386_pc;
  1852. };
  1853. module = {
  1854. name = keylayouts;
  1855. common = commands/keylayouts.c;
  1856. enable = x86;
  1857. };
  1858. module = {
  1859. name = priority_queue;
  1860. common = lib/priority_queue.c;
  1861. };
  1862. module = {
  1863. name = time;
  1864. common = commands/time.c;
  1865. };
  1866. module = {
  1867. name = cacheinfo;
  1868. common = commands/cacheinfo.c;
  1869. condition = COND_ENABLE_CACHE_STATS;
  1870. };
  1871. module = {
  1872. name = boottime;
  1873. common = commands/boottime.c;
  1874. condition = COND_ENABLE_BOOT_TIME_STATS;
  1875. };
  1876. module = {
  1877. name = adler32;
  1878. common = lib/adler32.c;
  1879. };
  1880. module = {
  1881. name = crc64;
  1882. common = lib/crc64.c;
  1883. };
  1884. module = {
  1885. name = mpi;
  1886. common = lib/libgcrypt-grub/mpi/mpiutil.c;
  1887. common = lib/libgcrypt-grub/mpi/mpi-bit.c;
  1888. common = lib/libgcrypt-grub/mpi/mpi-add.c;
  1889. common = lib/libgcrypt-grub/mpi/mpi-mul.c;
  1890. common = lib/libgcrypt-grub/mpi/mpi-mod.c;
  1891. common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
  1892. common = lib/libgcrypt-grub/mpi/mpi-div.c;
  1893. common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
  1894. common = lib/libgcrypt-grub/mpi/mpi-inv.c;
  1895. common = lib/libgcrypt-grub/mpi/mpi-pow.c;
  1896. common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
  1897. common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
  1898. common = lib/libgcrypt-grub/mpi/mpih-mul.c;
  1899. common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
  1900. common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
  1901. common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
  1902. common = lib/libgcrypt-grub/mpi/mpih-add1.c;
  1903. common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
  1904. common = lib/libgcrypt-grub/mpi/mpih-div.c;
  1905. common = lib/libgcrypt-grub/mpi/mpicoder.c;
  1906. common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
  1907. common = lib/libgcrypt-grub/mpi/mpi-inline.c;
  1908. common = lib/libgcrypt_wrap/mem.c;
  1909. cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
  1910. cppflags = '$(CPPFLAGS_GCRY)';
  1911. };
  1912. module = {
  1913. name = all_video;
  1914. common = lib/fake_module.c;
  1915. };
  1916. module = {
  1917. name = gdb;
  1918. common = gdb/cstub.c;
  1919. common = gdb/gdb.c;
  1920. i386 = gdb/i386/idt.c;
  1921. i386 = gdb/i386/machdep.S;
  1922. i386 = gdb/i386/signal.c;
  1923. enable = i386;
  1924. };
  1925. module = {
  1926. name = testspeed;
  1927. common = commands/testspeed.c;
  1928. };
  1929. module = {
  1930. name = tr;
  1931. common = commands/tr.c;
  1932. };
  1933. module = {
  1934. name = progress;
  1935. common = lib/progress.c;
  1936. };
  1937. module = {
  1938. name = file;
  1939. common = commands/file.c;
  1940. common = commands/file32.c;
  1941. common = commands/file64.c;
  1942. extra_dist = commands/fileXX.c;
  1943. common = loader/i386/xen_file.c;
  1944. common = loader/i386/xen_file32.c;
  1945. common = loader/i386/xen_file64.c;
  1946. extra_dist = loader/i386/xen_fileXX.c;
  1947. };