Makefile.core.def 44 KB

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