Makefile.core.def 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602
  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 = 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 = 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 = scsi;
  1058. common = disk/scsi.c;
  1059. };
  1060. module = {
  1061. name = memdisk;
  1062. common = disk/memdisk.c;
  1063. };
  1064. module = {
  1065. name = ata;
  1066. common = disk/ata.c;
  1067. enable = pci;
  1068. enable = mips_qemu_mips;
  1069. };
  1070. module = {
  1071. name = ahci;
  1072. common = disk/ahci.c;
  1073. enable = pci;
  1074. };
  1075. module = {
  1076. name = pata;
  1077. common = disk/pata.c;
  1078. enable = pci;
  1079. enable = mips_qemu_mips;
  1080. };
  1081. module = {
  1082. name = biosdisk;
  1083. i386_pc = disk/i386/pc/biosdisk.c;
  1084. enable = i386_pc;
  1085. };
  1086. module = {
  1087. name = usbms;
  1088. common = disk/usbms.c;
  1089. enable = usb;
  1090. };
  1091. module = {
  1092. name = nand;
  1093. ieee1275 = disk/ieee1275/nand.c;
  1094. enable = i386_ieee1275;
  1095. };
  1096. module = {
  1097. name = efiemu;
  1098. common = efiemu/main.c;
  1099. common = efiemu/i386/loadcore32.c;
  1100. common = efiemu/i386/loadcore64.c;
  1101. i386_pc = efiemu/i386/pc/cfgtables.c;
  1102. i386_coreboot = efiemu/i386/pc/cfgtables.c;
  1103. i386_multiboot = efiemu/i386/pc/cfgtables.c;
  1104. i386_ieee1275 = efiemu/i386/nocfgtables.c;
  1105. i386_qemu = efiemu/i386/nocfgtables.c;
  1106. common = efiemu/mm.c;
  1107. common = efiemu/loadcore_common.c;
  1108. common = efiemu/symbols.c;
  1109. common = efiemu/loadcore32.c;
  1110. common = efiemu/loadcore64.c;
  1111. common = efiemu/prepare32.c;
  1112. common = efiemu/prepare64.c;
  1113. common = efiemu/pnvram.c;
  1114. common = efiemu/i386/coredetect.c;
  1115. extra_dist = efiemu/prepare.c;
  1116. extra_dist = efiemu/loadcore.c;
  1117. extra_dist = efiemu/runtime/efiemu.S;
  1118. extra_dist = efiemu/runtime/efiemu.c;
  1119. enable = i386_pc;
  1120. enable = i386_coreboot;
  1121. enable = i386_ieee1275;
  1122. enable = i386_multiboot;
  1123. enable = i386_qemu;
  1124. };
  1125. module = {
  1126. name = font;
  1127. common = font/font.c;
  1128. common = font/font_cmd.c;
  1129. enable = videomodules;
  1130. };
  1131. module = {
  1132. name = procfs;
  1133. common = fs/proc.c;
  1134. };
  1135. module = {
  1136. name = affs;
  1137. common = fs/affs.c;
  1138. };
  1139. module = {
  1140. name = afs;
  1141. common = fs/afs.c;
  1142. };
  1143. module = {
  1144. name = bfs;
  1145. common = fs/bfs.c;
  1146. };
  1147. module = {
  1148. name = zstd;
  1149. common = lib/zstd/debug.c;
  1150. common = lib/zstd/entropy_common.c;
  1151. common = lib/zstd/error_private.c;
  1152. common = lib/zstd/fse_decompress.c;
  1153. common = lib/zstd/huf_decompress.c;
  1154. common = lib/zstd/module.c;
  1155. common = lib/zstd/xxhash.c;
  1156. common = lib/zstd/zstd_common.c;
  1157. common = lib/zstd/zstd_decompress.c;
  1158. cflags = '$(CFLAGS_POSIX) -Wno-undef';
  1159. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/zstd';
  1160. };
  1161. module = {
  1162. name = btrfs;
  1163. common = fs/btrfs.c;
  1164. common = lib/crc.c;
  1165. cflags = '$(CFLAGS_POSIX) -Wno-undef';
  1166. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -I$(srcdir)/lib/zstd -DMINILZO_HAVE_CONFIG_H';
  1167. };
  1168. module = {
  1169. name = archelp;
  1170. common = fs/archelp.c;
  1171. };
  1172. module = {
  1173. name = cbfs;
  1174. common = fs/cbfs.c;
  1175. };
  1176. module = {
  1177. name = cpio;
  1178. common = fs/cpio.c;
  1179. };
  1180. module = {
  1181. name = cpio_be;
  1182. common = fs/cpio_be.c;
  1183. };
  1184. module = {
  1185. name = newc;
  1186. common = fs/newc.c;
  1187. };
  1188. module = {
  1189. name = odc;
  1190. common = fs/odc.c;
  1191. };
  1192. module = {
  1193. name = ext2;
  1194. common = fs/ext2.c;
  1195. };
  1196. module = {
  1197. name = fat;
  1198. common = fs/fat.c;
  1199. };
  1200. module = {
  1201. name = exfat;
  1202. common = fs/exfat.c;
  1203. };
  1204. module = {
  1205. name = f2fs;
  1206. common = fs/f2fs.c;
  1207. };
  1208. module = {
  1209. name = fshelp;
  1210. common = fs/fshelp.c;
  1211. };
  1212. module = {
  1213. name = hfs;
  1214. common = fs/hfs.c;
  1215. };
  1216. module = {
  1217. name = hfsplus;
  1218. common = fs/hfsplus.c;
  1219. };
  1220. module = {
  1221. name = hfspluscomp;
  1222. common = fs/hfspluscomp.c;
  1223. };
  1224. module = {
  1225. name = iso9660;
  1226. common = fs/iso9660.c;
  1227. };
  1228. module = {
  1229. name = jfs;
  1230. common = fs/jfs.c;
  1231. };
  1232. module = {
  1233. name = minix;
  1234. common = fs/minix.c;
  1235. };
  1236. module = {
  1237. name = minix2;
  1238. common = fs/minix2.c;
  1239. };
  1240. module = {
  1241. name = minix3;
  1242. common = fs/minix3.c;
  1243. };
  1244. module = {
  1245. name = minix_be;
  1246. common = fs/minix_be.c;
  1247. };
  1248. module = {
  1249. name = minix2_be;
  1250. common = fs/minix2_be.c;
  1251. };
  1252. module = {
  1253. name = minix3_be;
  1254. common = fs/minix3_be.c;
  1255. };
  1256. module = {
  1257. name = nilfs2;
  1258. common = fs/nilfs2.c;
  1259. };
  1260. module = {
  1261. name = ntfs;
  1262. common = fs/ntfs.c;
  1263. };
  1264. module = {
  1265. name = ntfscomp;
  1266. common = fs/ntfscomp.c;
  1267. };
  1268. module = {
  1269. name = reiserfs;
  1270. common = fs/reiserfs.c;
  1271. };
  1272. module = {
  1273. name = romfs;
  1274. common = fs/romfs.c;
  1275. };
  1276. module = {
  1277. name = sfs;
  1278. common = fs/sfs.c;
  1279. };
  1280. module = {
  1281. name = squash4;
  1282. common = fs/squash4.c;
  1283. cflags = '$(CFLAGS_POSIX) -Wno-undef';
  1284. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
  1285. };
  1286. module = {
  1287. name = tar;
  1288. common = fs/tar.c;
  1289. };
  1290. module = {
  1291. name = udf;
  1292. common = fs/udf.c;
  1293. };
  1294. module = {
  1295. name = ufs1;
  1296. common = fs/ufs.c;
  1297. };
  1298. module = {
  1299. name = ufs1_be;
  1300. common = fs/ufs_be.c;
  1301. };
  1302. module = {
  1303. name = ufs2;
  1304. common = fs/ufs2.c;
  1305. };
  1306. module = {
  1307. name = xfs;
  1308. common = fs/xfs.c;
  1309. };
  1310. module = {
  1311. name = zfs;
  1312. common = fs/zfs/zfs.c;
  1313. common = fs/zfs/zfs_lzjb.c;
  1314. common = fs/zfs/zfs_lz4.c;
  1315. common = fs/zfs/zfs_sha256.c;
  1316. common = fs/zfs/zfs_fletcher.c;
  1317. };
  1318. module = {
  1319. name = zfscrypt;
  1320. common = fs/zfs/zfscrypt.c;
  1321. };
  1322. module = {
  1323. name = zfsinfo;
  1324. common = fs/zfs/zfsinfo.c;
  1325. };
  1326. module = {
  1327. name = macbless;
  1328. common = commands/macbless.c;
  1329. };
  1330. module = {
  1331. name = pxe;
  1332. i386_pc = net/drivers/i386/pc/pxe.c;
  1333. enable = i386_pc;
  1334. };
  1335. module = {
  1336. name = gettext;
  1337. common = gettext/gettext.c;
  1338. };
  1339. module = {
  1340. name = gfxmenu;
  1341. common = gfxmenu/gfxmenu.c;
  1342. common = gfxmenu/view.c;
  1343. common = gfxmenu/font.c;
  1344. common = gfxmenu/icon_manager.c;
  1345. common = gfxmenu/theme_loader.c;
  1346. common = gfxmenu/widget-box.c;
  1347. common = gfxmenu/gui_canvas.c;
  1348. common = gfxmenu/gui_circular_progress.c;
  1349. common = gfxmenu/gui_box.c;
  1350. common = gfxmenu/gui_label.c;
  1351. common = gfxmenu/gui_list.c;
  1352. common = gfxmenu/gui_image.c;
  1353. common = gfxmenu/gui_progress_bar.c;
  1354. common = gfxmenu/gui_util.c;
  1355. common = gfxmenu/gui_string_util.c;
  1356. };
  1357. module = {
  1358. name = hello;
  1359. common = hello/hello.c;
  1360. };
  1361. module = {
  1362. name = gzio;
  1363. common = io/gzio.c;
  1364. };
  1365. module = {
  1366. name = offsetio;
  1367. common = io/offset.c;
  1368. };
  1369. module = {
  1370. name = bufio;
  1371. common = io/bufio.c;
  1372. enable = videomodules;
  1373. };
  1374. module = {
  1375. name = elf;
  1376. common = kern/elf.c;
  1377. extra_dist = kern/elfXX.c;
  1378. };
  1379. module = {
  1380. name = crypto;
  1381. common = lib/crypto.c;
  1382. extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
  1383. };
  1384. module = {
  1385. name = pbkdf2;
  1386. common = lib/pbkdf2.c;
  1387. };
  1388. module = {
  1389. name = relocator;
  1390. common = lib/relocator.c;
  1391. x86 = lib/i386/relocator16.S;
  1392. x86 = lib/i386/relocator32.S;
  1393. x86 = lib/i386/relocator64.S;
  1394. i386_xen_pvh = lib/i386/relocator16.S;
  1395. i386_xen_pvh = lib/i386/relocator32.S;
  1396. i386_xen_pvh = lib/i386/relocator64.S;
  1397. i386 = lib/i386/relocator_asm.S;
  1398. i386_xen_pvh = lib/i386/relocator_asm.S;
  1399. x86_64 = lib/x86_64/relocator_asm.S;
  1400. i386_xen = lib/i386/relocator_asm.S;
  1401. x86_64_xen = lib/x86_64/relocator_asm.S;
  1402. x86 = lib/i386/relocator.c;
  1403. x86 = lib/i386/relocator_common_c.c;
  1404. i386_xen_pvh = lib/i386/relocator.c;
  1405. i386_xen_pvh = lib/i386/relocator_common_c.c;
  1406. ieee1275 = lib/ieee1275/relocator.c;
  1407. efi = lib/efi/relocator.c;
  1408. mips = lib/mips/relocator_asm.S;
  1409. mips = lib/mips/relocator.c;
  1410. powerpc = lib/powerpc/relocator_asm.S;
  1411. powerpc = lib/powerpc/relocator.c;
  1412. xen = lib/xen/relocator.c;
  1413. i386_xen = lib/i386/xen/relocator.S;
  1414. x86_64_xen = lib/x86_64/xen/relocator.S;
  1415. xen = lib/i386/relocator_common_c.c;
  1416. x86_64_efi = lib/x86_64/efi/relocator.c;
  1417. extra_dist = lib/i386/relocator_common.S;
  1418. extra_dist = kern/powerpc/cache_flush.S;
  1419. enable = mips;
  1420. enable = powerpc;
  1421. enable = x86;
  1422. enable = i386_xen_pvh;
  1423. enable = xen;
  1424. };
  1425. module = {
  1426. name = datetime;
  1427. common = lib/datetime.c;
  1428. cmos = lib/cmos_datetime.c;
  1429. efi = lib/efi/datetime.c;
  1430. uboot = lib/dummy/datetime.c;
  1431. arm_coreboot = lib/dummy/datetime.c;
  1432. sparc64_ieee1275 = lib/ieee1275/datetime.c;
  1433. powerpc_ieee1275 = lib/ieee1275/datetime.c;
  1434. sparc64_ieee1275 = lib/ieee1275/cmos.c;
  1435. powerpc_ieee1275 = lib/ieee1275/cmos.c;
  1436. xen = lib/xen/datetime.c;
  1437. i386_xen_pvh = lib/xen/datetime.c;
  1438. mips_arc = lib/arc/datetime.c;
  1439. };
  1440. module = {
  1441. name = setjmp;
  1442. common = lib/setjmp.S;
  1443. extra_dist = lib/i386/setjmp.S;
  1444. extra_dist = lib/mips/setjmp.S;
  1445. extra_dist = lib/x86_64/setjmp.S;
  1446. extra_dist = lib/sparc64/setjmp.S;
  1447. extra_dist = lib/powerpc/setjmp.S;
  1448. extra_dist = lib/ia64/setjmp.S;
  1449. extra_dist = lib/ia64/longjmp.S;
  1450. extra_dist = lib/arm/setjmp.S;
  1451. extra_dist = lib/arm64/setjmp.S;
  1452. extra_dist = lib/riscv/setjmp.S;
  1453. extra_dist = lib/loongarch64/setjmp.S;
  1454. };
  1455. module = {
  1456. name = aout;
  1457. common = loader/aout.c;
  1458. enable = x86;
  1459. };
  1460. module = {
  1461. name = bsd;
  1462. x86 = loader/i386/bsd.c;
  1463. x86 = loader/i386/bsd32.c;
  1464. x86 = loader/i386/bsd64.c;
  1465. extra_dist = loader/i386/bsdXX.c;
  1466. extra_dist = loader/i386/bsd_pagetable.c;
  1467. enable = x86;
  1468. };
  1469. module = {
  1470. name = plan9;
  1471. i386_pc = loader/i386/pc/plan9.c;
  1472. enable = i386_pc;
  1473. };
  1474. module = {
  1475. name = linux16;
  1476. common = loader/i386/pc/linux.c;
  1477. enable = x86;
  1478. };
  1479. module = {
  1480. name = ntldr;
  1481. i386_pc = loader/i386/pc/ntldr.c;
  1482. enable = i386_pc;
  1483. };
  1484. module = {
  1485. name = truecrypt;
  1486. i386_pc = loader/i386/pc/truecrypt.c;
  1487. enable = i386_pc;
  1488. };
  1489. module = {
  1490. name = freedos;
  1491. i386_pc = loader/i386/pc/freedos.c;
  1492. enable = i386_pc;
  1493. };
  1494. module = {
  1495. name = pxechain;
  1496. i386_pc = loader/i386/pc/pxechainloader.c;
  1497. enable = i386_pc;
  1498. };
  1499. module = {
  1500. name = multiboot2;
  1501. cppflags = "-DGRUB_USE_MULTIBOOT2";
  1502. common = loader/multiboot.c;
  1503. common = loader/multiboot_mbi2.c;
  1504. enable = x86;
  1505. enable = i386_xen_pvh;
  1506. enable = mips;
  1507. };
  1508. module = {
  1509. name = multiboot;
  1510. common = loader/multiboot.c;
  1511. x86 = loader/i386/multiboot_mbi.c;
  1512. i386_xen_pvh = loader/i386/multiboot_mbi.c;
  1513. extra_dist = loader/multiboot_elfxx.c;
  1514. enable = x86;
  1515. enable = i386_xen_pvh;
  1516. };
  1517. module = {
  1518. name = xen_boot;
  1519. arm64 = loader/arm64/xen_boot.c;
  1520. enable = arm64;
  1521. };
  1522. module = {
  1523. name = linux;
  1524. x86 = loader/i386/linux.c;
  1525. i386_xen_pvh = loader/i386/linux.c;
  1526. xen = loader/i386/xen.c;
  1527. i386_pc = lib/i386/pc/vesa_modes_table.c;
  1528. i386_xen_pvh = lib/i386/pc/vesa_modes_table.c;
  1529. mips = loader/mips/linux.c;
  1530. powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
  1531. sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
  1532. ia64_efi = loader/ia64/efi/linux.c;
  1533. arm_coreboot = loader/arm/linux.c;
  1534. arm_efi = loader/efi/linux.c;
  1535. arm_uboot = loader/arm/linux.c;
  1536. arm64 = loader/efi/linux.c;
  1537. loongarch64 = loader/efi/linux.c;
  1538. riscv32 = loader/efi/linux.c;
  1539. riscv64 = loader/efi/linux.c;
  1540. i386_efi = loader/efi/linux.c;
  1541. x86_64_efi = loader/efi/linux.c;
  1542. emu = loader/emu/linux.c;
  1543. common = loader/linux.c;
  1544. common = lib/cmdline.c;
  1545. };
  1546. module = {
  1547. name = fdt;
  1548. efi = loader/efi/fdt.c;
  1549. common = lib/fdt.c;
  1550. enable = fdt;
  1551. };
  1552. module = {
  1553. name = xnu;
  1554. x86 = loader/xnu_resume.c;
  1555. x86 = loader/i386/xnu.c;
  1556. x86 = loader/xnu.c;
  1557. /* Code is pretty generic but relies on RNG which
  1558. is available only on few platforms. It's not a
  1559. big deal as xnu needs ACPI anyway and we have
  1560. RNG on all platforms with ACPI.
  1561. */
  1562. enable = i386_multiboot;
  1563. enable = i386_coreboot;
  1564. enable = i386_pc;
  1565. enable = i386_efi;
  1566. enable = x86_64_efi;
  1567. };
  1568. module = {
  1569. name = random;
  1570. x86 = lib/i386/random.c;
  1571. common = lib/random.c;
  1572. i386_multiboot = kern/i386/tsc_pmtimer.c;
  1573. i386_coreboot = kern/i386/tsc_pmtimer.c;
  1574. i386_pc = kern/i386/tsc_pmtimer.c;
  1575. enable = i386_multiboot;
  1576. enable = i386_coreboot;
  1577. enable = i386_pc;
  1578. enable = i386_efi;
  1579. enable = x86_64_efi;
  1580. };
  1581. module = {
  1582. name = macho;
  1583. common = loader/macho.c;
  1584. common = loader/macho32.c;
  1585. common = loader/macho64.c;
  1586. common = loader/lzss.c;
  1587. extra_dist = loader/machoXX.c;
  1588. };
  1589. module = {
  1590. name = appleldr;
  1591. common = loader/efi/appleloader.c;
  1592. enable = i386_efi;
  1593. enable = x86_64_efi;
  1594. };
  1595. module = {
  1596. name = chain;
  1597. efi = loader/efi/chainloader.c;
  1598. i386_pc = loader/i386/pc/chainloader.c;
  1599. i386_coreboot = loader/i386/coreboot/chainloader.c;
  1600. i386_coreboot = lib/LzmaDec.c;
  1601. enable = i386_pc;
  1602. enable = i386_coreboot;
  1603. enable = efi;
  1604. };
  1605. module = {
  1606. name = mmap;
  1607. common = mmap/mmap.c;
  1608. x86 = mmap/i386/uppermem.c;
  1609. x86 = mmap/i386/mmap.c;
  1610. i386_xen_pvh = mmap/i386/uppermem.c;
  1611. i386_xen_pvh = mmap/i386/mmap.c;
  1612. i386_pc = mmap/i386/pc/mmap.c;
  1613. i386_pc = mmap/i386/pc/mmap_helper.S;
  1614. efi = mmap/efi/mmap.c;
  1615. mips = mmap/mips/uppermem.c;
  1616. enable = x86;
  1617. enable = i386_xen_pvh;
  1618. enable = ia64_efi;
  1619. enable = arm_efi;
  1620. enable = arm64_efi;
  1621. enable = loongarch64_efi;
  1622. enable = riscv32_efi;
  1623. enable = riscv64_efi;
  1624. enable = mips;
  1625. };
  1626. module = {
  1627. name = normal;
  1628. common = normal/main.c;
  1629. common = normal/cmdline.c;
  1630. common = normal/dyncmd.c;
  1631. common = normal/auth.c;
  1632. common = normal/autofs.c;
  1633. common = normal/color.c;
  1634. common = normal/completion.c;
  1635. common = normal/menu.c;
  1636. common = normal/menu_entry.c;
  1637. common = normal/menu_text.c;
  1638. common = normal/misc.c;
  1639. common = normal/crypto.c;
  1640. common = normal/term.c;
  1641. common = normal/context.c;
  1642. common = normal/charset.c;
  1643. common = lib/getline.c;
  1644. common = script/main.c;
  1645. common = script/script.c;
  1646. common = script/execute.c;
  1647. common = script/function.c;
  1648. common = script/lexer.c;
  1649. common = script/argv.c;
  1650. common = commands/menuentry.c;
  1651. common = unidata.c;
  1652. common_nodist = grub_script.tab.c;
  1653. common_nodist = grub_script.yy.c;
  1654. common_nodist = grub_script.tab.h;
  1655. common_nodist = grub_script.yy.h;
  1656. extra_dist = script/yylex.l;
  1657. extra_dist = script/parser.y;
  1658. cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls -Wno-unused-but-set-variable';
  1659. cppflags = '$(CPPFLAGS_POSIX)';
  1660. };
  1661. module = {
  1662. name = part_acorn;
  1663. common = partmap/acorn.c;
  1664. };
  1665. module = {
  1666. name = part_amiga;
  1667. common = partmap/amiga.c;
  1668. };
  1669. module = {
  1670. name = part_apple;
  1671. common = partmap/apple.c;
  1672. };
  1673. module = {
  1674. name = part_gpt;
  1675. common = partmap/gpt.c;
  1676. };
  1677. module = {
  1678. name = part_msdos;
  1679. common = partmap/msdos.c;
  1680. };
  1681. module = {
  1682. name = part_sun;
  1683. common = partmap/sun.c;
  1684. };
  1685. module = {
  1686. name = part_plan;
  1687. common = partmap/plan.c;
  1688. };
  1689. module = {
  1690. name = part_dvh;
  1691. common = partmap/dvh.c;
  1692. };
  1693. module = {
  1694. name = part_bsd;
  1695. common = partmap/bsdlabel.c;
  1696. };
  1697. module = {
  1698. name = part_sunpc;
  1699. common = partmap/sunpc.c;
  1700. };
  1701. module = {
  1702. name = part_dfly;
  1703. common = partmap/dfly.c;
  1704. };
  1705. module = {
  1706. name = msdospart;
  1707. common = parttool/msdospart.c;
  1708. };
  1709. module = {
  1710. name = at_keyboard;
  1711. common = term/at_keyboard.c;
  1712. common = term/ps2.c;
  1713. enable = x86;
  1714. };
  1715. module = {
  1716. name = gfxterm;
  1717. common = term/gfxterm.c;
  1718. enable = videomodules;
  1719. };
  1720. module = {
  1721. name = gfxterm_background;
  1722. common = term/gfxterm_background.c;
  1723. };
  1724. module = {
  1725. name = serial;
  1726. common = term/serial.c;
  1727. x86 = term/ns8250.c;
  1728. x86 = term/ns8250-spcr.c;
  1729. ieee1275 = term/ieee1275/serial.c;
  1730. mips_arc = term/arc/serial.c;
  1731. efi = term/efi/serial.c;
  1732. x86 = term/pci/serial.c;
  1733. enable = terminfomodule;
  1734. enable = ieee1275;
  1735. enable = mips_arc;
  1736. };
  1737. module = {
  1738. name = sendkey;
  1739. i386_pc = commands/i386/pc/sendkey.c;
  1740. enable = i386_pc;
  1741. };
  1742. module = {
  1743. name = terminfo;
  1744. common = term/terminfo.c;
  1745. common = term/tparm.c;
  1746. enable = terminfomodule;
  1747. };
  1748. module = {
  1749. name = usb_keyboard;
  1750. common = term/usb_keyboard.c;
  1751. enable = usb;
  1752. };
  1753. module = {
  1754. name = vga;
  1755. common = video/i386/pc/vga.c;
  1756. enable = i386_pc;
  1757. };
  1758. module = {
  1759. name = vga_text;
  1760. common = term/i386/pc/vga_text.c;
  1761. enable = i386_pc;
  1762. };
  1763. module = {
  1764. name = mda_text;
  1765. common = term/i386/pc/mda_text.c;
  1766. enable = i386_pc;
  1767. enable = i386_coreboot_multiboot_qemu;
  1768. };
  1769. module = {
  1770. name = video_cirrus;
  1771. x86 = video/cirrus.c;
  1772. enable = x86;
  1773. };
  1774. module = {
  1775. name = video_bochs;
  1776. x86 = video/bochs.c;
  1777. enable = x86;
  1778. };
  1779. module = {
  1780. name = functional_test;
  1781. common = tests/lib/functional_test.c;
  1782. common = tests/lib/test.c;
  1783. common = tests/checksums.h;
  1784. common = tests/video_checksum.c;
  1785. common = tests/fake_input.c;
  1786. common = video/capture.c;
  1787. };
  1788. module = {
  1789. name = exfctest;
  1790. common = tests/example_functional_test.c;
  1791. };
  1792. module = {
  1793. name = strtoull_test;
  1794. common = tests/strtoull_test.c;
  1795. };
  1796. module = {
  1797. name = setjmp_test;
  1798. common = tests/setjmp_test.c;
  1799. };
  1800. module = {
  1801. name = signature_test;
  1802. common = tests/signature_test.c;
  1803. common = tests/signatures.h;
  1804. };
  1805. module = {
  1806. name = sleep_test;
  1807. common = tests/sleep_test.c;
  1808. };
  1809. module = {
  1810. name = xnu_uuid_test;
  1811. common = tests/xnu_uuid_test.c;
  1812. };
  1813. module = {
  1814. name = pbkdf2_test;
  1815. common = tests/pbkdf2_test.c;
  1816. };
  1817. module = {
  1818. name = legacy_password_test;
  1819. common = tests/legacy_password_test.c;
  1820. enable = i386_pc;
  1821. enable = i386_xen_pvh;
  1822. enable = i386_efi;
  1823. enable = x86_64_efi;
  1824. enable = emu;
  1825. enable = xen;
  1826. };
  1827. module = {
  1828. name = div;
  1829. common = lib/division.c;
  1830. enable = no_softdiv;
  1831. };
  1832. module = {
  1833. name = div_test;
  1834. common = tests/div_test.c;
  1835. };
  1836. module = {
  1837. name = mul_test;
  1838. common = tests/mul_test.c;
  1839. };
  1840. module = {
  1841. name = shift_test;
  1842. common = tests/shift_test.c;
  1843. };
  1844. module = {
  1845. name = cmp_test;
  1846. common = tests/cmp_test.c;
  1847. };
  1848. module = {
  1849. name = ctz_test;
  1850. common = tests/ctz_test.c;
  1851. };
  1852. module = {
  1853. name = bswap_test;
  1854. common = tests/bswap_test.c;
  1855. };
  1856. module = {
  1857. name = videotest_checksum;
  1858. common = tests/videotest_checksum.c;
  1859. };
  1860. module = {
  1861. name = gfxterm_menu;
  1862. common = tests/gfxterm_menu.c;
  1863. };
  1864. module = {
  1865. name = cmdline_cat_test;
  1866. common = tests/cmdline_cat_test.c;
  1867. };
  1868. module = {
  1869. name = bitmap;
  1870. common = video/bitmap.c;
  1871. };
  1872. module = {
  1873. name = bitmap_scale;
  1874. common = video/bitmap_scale.c;
  1875. };
  1876. module = {
  1877. name = efi_gop;
  1878. efi = video/efi_gop.c;
  1879. enable = efi;
  1880. };
  1881. module = {
  1882. name = efi_uga;
  1883. efi = video/efi_uga.c;
  1884. enable = i386_efi;
  1885. enable = x86_64_efi;
  1886. };
  1887. module = {
  1888. name = jpeg;
  1889. common = video/readers/jpeg.c;
  1890. };
  1891. module = {
  1892. name = png;
  1893. common = video/readers/png.c;
  1894. };
  1895. module = {
  1896. name = tga;
  1897. common = video/readers/tga.c;
  1898. };
  1899. module = {
  1900. name = vbe;
  1901. common = video/i386/pc/vbe.c;
  1902. enable = i386_pc;
  1903. };
  1904. module = {
  1905. name = video_fb;
  1906. common = video/fb/video_fb.c;
  1907. common = video/fb/fbblit.c;
  1908. common = video/fb/fbfill.c;
  1909. common = video/fb/fbutil.c;
  1910. enable = videomodules;
  1911. };
  1912. module = {
  1913. name = video;
  1914. common = video/video.c;
  1915. enable = videomodules;
  1916. };
  1917. module = {
  1918. name = video_colors;
  1919. common = video/colors.c;
  1920. };
  1921. module = {
  1922. name = ieee1275_fb;
  1923. ieee1275 = video/ieee1275.c;
  1924. enable = powerpc_ieee1275;
  1925. };
  1926. module = {
  1927. name = sdl;
  1928. emu = video/emu/sdl.c;
  1929. enable = emu;
  1930. condition = COND_GRUB_EMU_SDL;
  1931. };
  1932. module = {
  1933. name = sdl;
  1934. emu = video/emu/sdl.c;
  1935. enable = emu;
  1936. condition = COND_GRUB_EMU_SDL2;
  1937. cflags = '$(SDL2_CFLAGS)';
  1938. };
  1939. module = {
  1940. name = datehook;
  1941. common = hook/datehook.c;
  1942. };
  1943. module = {
  1944. name = net;
  1945. common = net/net.c;
  1946. common = net/dns.c;
  1947. common = net/bootp.c;
  1948. common = net/ip.c;
  1949. common = net/udp.c;
  1950. common = net/tcp.c;
  1951. common = net/icmp.c;
  1952. common = net/icmp6.c;
  1953. common = net/ethernet.c;
  1954. common = net/arp.c;
  1955. common = net/netbuff.c;
  1956. };
  1957. module = {
  1958. name = tftp;
  1959. common = net/tftp.c;
  1960. };
  1961. module = {
  1962. name = http;
  1963. common = net/http.c;
  1964. };
  1965. module = {
  1966. name = ofnet;
  1967. common = net/drivers/ieee1275/ofnet.c;
  1968. enable = ieee1275;
  1969. };
  1970. module = {
  1971. name = ubootnet;
  1972. common = net/drivers/uboot/ubootnet.c;
  1973. enable = uboot;
  1974. };
  1975. module = {
  1976. name = efinet;
  1977. common = net/drivers/efi/efinet.c;
  1978. enable = efi;
  1979. };
  1980. module = {
  1981. name = emunet;
  1982. emu = net/drivers/emu/emunet.c;
  1983. enable = emu;
  1984. };
  1985. module = {
  1986. name = legacycfg;
  1987. common = commands/legacycfg.c;
  1988. common = lib/legacy_parse.c;
  1989. emu = lib/i386/pc/vesa_modes_table.c;
  1990. i386_efi = lib/i386/pc/vesa_modes_table.c;
  1991. x86_64_efi = lib/i386/pc/vesa_modes_table.c;
  1992. xen = lib/i386/pc/vesa_modes_table.c;
  1993. enable = i386_pc;
  1994. enable = i386_xen_pvh;
  1995. enable = i386_efi;
  1996. enable = x86_64_efi;
  1997. enable = emu;
  1998. enable = xen;
  1999. };
  2000. module = {
  2001. name = syslinuxcfg;
  2002. common = lib/syslinux_parse.c;
  2003. common = commands/syslinuxcfg.c;
  2004. };
  2005. module = {
  2006. name = test_blockarg;
  2007. common = tests/test_blockarg.c;
  2008. };
  2009. module = {
  2010. name = xzio;
  2011. common = io/xzio.c;
  2012. common = lib/xzembed/xz_dec_bcj.c;
  2013. common = lib/xzembed/xz_dec_lzma2.c;
  2014. common = lib/xzembed/xz_dec_stream.c;
  2015. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
  2016. cflags='-Wno-unreachable-code';
  2017. };
  2018. module = {
  2019. name = lzopio;
  2020. common = io/lzopio.c;
  2021. common = lib/minilzo/minilzo.c;
  2022. cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
  2023. cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
  2024. };
  2025. module = {
  2026. name = testload;
  2027. common = commands/testload.c;
  2028. };
  2029. module = {
  2030. name = backtrace;
  2031. x86 = lib/i386/backtrace.c;
  2032. i386_xen_pvh = lib/i386/backtrace.c;
  2033. i386_xen = lib/i386/backtrace.c;
  2034. x86_64_xen = lib/i386/backtrace.c;
  2035. common = lib/backtrace.c;
  2036. enable = x86;
  2037. enable = i386_xen_pvh;
  2038. enable = i386_xen;
  2039. enable = x86_64_xen;
  2040. };
  2041. module = {
  2042. name = lsapm;
  2043. common = commands/i386/pc/lsapm.c;
  2044. enable = i386_pc;
  2045. };
  2046. module = {
  2047. name = keylayouts;
  2048. common = commands/keylayouts.c;
  2049. enable = x86;
  2050. };
  2051. module = {
  2052. name = priority_queue;
  2053. common = lib/priority_queue.c;
  2054. };
  2055. module = {
  2056. name = time;
  2057. common = commands/time.c;
  2058. };
  2059. module = {
  2060. name = cacheinfo;
  2061. common = commands/cacheinfo.c;
  2062. condition = COND_ENABLE_CACHE_STATS;
  2063. };
  2064. module = {
  2065. name = boottime;
  2066. common = commands/boottime.c;
  2067. condition = COND_ENABLE_BOOT_TIME_STATS;
  2068. };
  2069. module = {
  2070. name = adler32;
  2071. common = lib/adler32.c;
  2072. };
  2073. module = {
  2074. name = crc64;
  2075. common = lib/crc64.c;
  2076. };
  2077. module = {
  2078. name = mpi;
  2079. common = lib/libgcrypt-grub/mpi/mpiutil.c;
  2080. common = lib/libgcrypt-grub/mpi/mpi-bit.c;
  2081. common = lib/libgcrypt-grub/mpi/mpi-add.c;
  2082. common = lib/libgcrypt-grub/mpi/mpi-mul.c;
  2083. common = lib/libgcrypt-grub/mpi/mpi-mod.c;
  2084. common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
  2085. common = lib/libgcrypt-grub/mpi/mpi-div.c;
  2086. common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
  2087. common = lib/libgcrypt-grub/mpi/mpi-inv.c;
  2088. common = lib/libgcrypt-grub/mpi/mpi-pow.c;
  2089. common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
  2090. common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
  2091. common = lib/libgcrypt-grub/mpi/mpih-mul.c;
  2092. common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
  2093. common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
  2094. common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
  2095. common = lib/libgcrypt-grub/mpi/mpih-add1.c;
  2096. common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
  2097. common = lib/libgcrypt-grub/mpi/mpih-div.c;
  2098. common = lib/libgcrypt-grub/mpi/mpicoder.c;
  2099. common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
  2100. common = lib/libgcrypt-grub/mpi/mpi-inline.c;
  2101. common = lib/libgcrypt_wrap/mem.c;
  2102. cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
  2103. cppflags = '$(CPPFLAGS_GCRY)';
  2104. };
  2105. module = {
  2106. name = all_video;
  2107. common = lib/fake_module.c;
  2108. };
  2109. module = {
  2110. name = gdb;
  2111. common = gdb/cstub.c;
  2112. common = gdb/gdb.c;
  2113. i386 = gdb/i386/idt.c;
  2114. i386 = gdb/i386/machdep.S;
  2115. i386 = gdb/i386/signal.c;
  2116. enable = i386;
  2117. };
  2118. module = {
  2119. name = testspeed;
  2120. common = commands/testspeed.c;
  2121. };
  2122. module = {
  2123. name = tpm;
  2124. common = commands/tpm.c;
  2125. efi = commands/efi/tpm.c;
  2126. enable = efi;
  2127. };
  2128. module = {
  2129. name = tr;
  2130. common = commands/tr.c;
  2131. };
  2132. module = {
  2133. name = progress;
  2134. common = lib/progress.c;
  2135. };
  2136. module = {
  2137. name = file;
  2138. common = commands/file.c;
  2139. common = commands/file32.c;
  2140. common = commands/file64.c;
  2141. extra_dist = commands/fileXX.c;
  2142. common = loader/i386/xen_file.c;
  2143. common = loader/i386/xen_file32.c;
  2144. common = loader/i386/xen_file64.c;
  2145. extra_dist = loader/i386/xen_fileXX.c;
  2146. };
  2147. module = {
  2148. name = rdmsr;
  2149. common = commands/i386/rdmsr.c;
  2150. enable = x86;
  2151. };
  2152. module = {
  2153. name = wrmsr;
  2154. common = commands/i386/wrmsr.c;
  2155. enable = x86;
  2156. };
  2157. module = {
  2158. name = memtools;
  2159. common = commands/memtools.c;
  2160. condition = COND_MM_DEBUG;
  2161. };
  2162. module = {
  2163. name = bli;
  2164. efi = commands/bli.c;
  2165. enable = efi;
  2166. };