Makefile.core.def 53 KB

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