Makefile.core.def 45 KB

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