Config.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. # mark broken devices
  4. config ADK_BROKEN
  5. bool
  6. config ADK_TARGET_WITH_USB
  7. bool
  8. config ADK_TARGET_WITH_PCI
  9. bool
  10. config ADK_TARGET_WITH_SSB
  11. bool
  12. config ADK_TARGET_WITH_MINIPCI
  13. bool
  14. config ADK_TARGET_WITH_VGA
  15. bool
  16. config ADK_TARGET_WITH_HDD
  17. bool
  18. config ADK_TARGET_WITH_SATA
  19. bool
  20. config ADK_TARGET_WITH_INPUT
  21. bool
  22. config ADK_TARGET_WITH_LEDS
  23. bool
  24. config ADK_TARGET_WITH_PP
  25. bool
  26. config ADK_TARGET_WITH_CARDBUS
  27. bool
  28. config ADK_TARGET_WITH_RTC
  29. bool
  30. config ADK_TARGET_WITH_WATCHDOG
  31. bool
  32. config ADK_TARGET_WITH_DSL
  33. bool
  34. config ADK_TARGET_CPU_WITH_VT
  35. bool
  36. config ADK_TOOLCHAIN_ONLY
  37. bool
  38. config ADK_TARGET_NO_FPU
  39. bool
  40. config ADK_EABI
  41. bool
  42. config ADK_LINUX_64
  43. bool
  44. config ADK_NATIVE
  45. tristate
  46. config ADK_alix
  47. tristate
  48. config ADK_wrap
  49. tristate
  50. config ADK_arm
  51. tristate
  52. config ADK_armel
  53. tristate
  54. config ADK_mips
  55. tristate
  56. config ADK_mipsel
  57. tristate
  58. config ADK_mips64
  59. tristate
  60. config ADK_mips64el
  61. tristate
  62. config ADK_ppc
  63. tristate
  64. config ADK_sparc
  65. tristate
  66. config ADK_sparc64
  67. tristate
  68. config ADK_rb532
  69. tristate
  70. config ADK_rb4xx
  71. tristate
  72. config ADK_zaurus
  73. tristate
  74. config ADK_foxg20
  75. tristate
  76. config ADK_foxboard
  77. tristate
  78. config ADK_brcm
  79. tristate
  80. config ADK_ag241
  81. tristate
  82. config ADK_x86_64
  83. tristate
  84. config ADK_x86
  85. tristate
  86. config ADK_qemu
  87. boolean
  88. config ADK_ibm_x40
  89. boolean
  90. config ADK_lemote_yeelong
  91. boolean
  92. config ADK_shuttle_sa76g2
  93. boolean
  94. config ADK_HW
  95. string
  96. default "qemu" if ADK_qemu
  97. default "ibm-x40" if ADK_ibm_x40
  98. default "shuttle-sa76g2" if ADK_shuttle_sa76g2
  99. default "lemote-yeelong" if ADK_lemote_yeelong
  100. config ADK_TARGET
  101. string
  102. default "arm" if ADK_arm
  103. default "armel" if ADK_armel
  104. default "mips" if ADK_mips
  105. default "mipsel" if ADK_mipsel
  106. default "mips64" if ADK_mips64
  107. default "mips64el" if ADK_mips64el
  108. default "ppc" if ADK_ppc
  109. default "sparc" if ADK_sparc
  110. default "sparc64" if ADK_sparc64
  111. default "x86" if ADK_x86
  112. default "x86_64" if ADK_x86_64
  113. default "alix" if ADK_alix
  114. default "wrap" if ADK_wrap
  115. default "brcm" if ADK_brcm
  116. default "foxboard" if ADK_foxboard
  117. default "foxg20" if ADK_foxg20
  118. default "rb532" if ADK_rb532
  119. default "rb4xx" if ADK_rb4xx
  120. default "ag241" if ADK_ag241
  121. default "native" if ADK_NATIVE
  122. config ADK_HARDWARE_QEMU
  123. boolean
  124. config ADK_CPU_SPARC_V8
  125. boolean
  126. config ADK_CPU_SPARC_V9
  127. boolean
  128. config ADK_CPU_I686
  129. boolean
  130. config ADK_CPU_PENTIUM_M
  131. boolean
  132. config ADK_CPU_AMDFAM10
  133. select ADK_TARGET_CPU_WITH_VT
  134. boolean
  135. config ADK_CPU_LOONGSON2F
  136. boolean
  137. config ADK_TARGET_CFLAGS
  138. string
  139. default "-march=i686" if ADK_CPU_I686
  140. default "-march=pentium-m" if ADK_CPU_PENTIUM_M
  141. default "-march=amdfam10" if ADK_CPU_AMDFAM10
  142. default "-mcpu=v8" if ADK_CPU_SPARC_V8
  143. default "-mcpu=v9" if ADK_CPU_SPARC_V9
  144. default "-march=loongson2f" if ADK_CPU_LOONGSON2F
  145. # c library
  146. config ADK_uclibc
  147. tristate
  148. config ADK_eglibc
  149. tristate
  150. config ADK_glibc
  151. tristate
  152. config ADK_libc
  153. tristate
  154. config ADK_LIBC
  155. string
  156. default "uclibc" if ADK_uclibc
  157. default "eglibc" if ADK_eglibc
  158. default "glibc" if ADK_glibc
  159. default "libc" if ADK_libc
  160. menu "Target system"
  161. choice
  162. prompt "Embedded devices or architecture"
  163. config ADK_TARGET_CHOICE
  164. bool "embedded devices"
  165. help
  166. choose between specific embedded devices.
  167. config ADK_ARCH_CHOICE
  168. bool "architectures"
  169. help
  170. choose between architectures and hardware profiles.
  171. endchoice
  172. choice
  173. prompt "Architectures and hardware profiles"
  174. depends on ADK_ARCH_CHOICE
  175. default ADK_LINUX_X86
  176. config ADK_LINUX_NATIVE
  177. bool "native build"
  178. select ADK_libc
  179. select ADK_NATIVE
  180. select ADK_TARGET_WITH_VGA
  181. select ADK_TARGET_WITH_USB
  182. depends on ADK_HOST_LINUX
  183. help
  184. Make a native build. Use host tools.
  185. No toolchain will be created.
  186. config ADK_LINUX_ARM
  187. bool "arm system (big endian)"
  188. select ADK_arm
  189. help
  190. Support for arm big endian systems.
  191. config ADK_LINUX_ARMEL
  192. bool "arm system (little endian)"
  193. select ADK_armel
  194. help
  195. Support for arm little endian systems.
  196. config ADK_LINUX_MIPS
  197. bool "mips system (big endian)"
  198. select ADK_mips
  199. help
  200. Support for mips big endian systems.
  201. config ADK_LINUX_MIPSEL
  202. bool "mips system (little endian)"
  203. select ADK_mipsel
  204. help
  205. Support for mips little endian systems.
  206. config ADK_LINUX_MIPS64
  207. bool "mips64 system (big endian)"
  208. select ADK_mips64
  209. help
  210. Support for mips64 big endian systems.
  211. config ADK_LINUX_MIPS64EL
  212. bool "mips64 system (little endian)"
  213. select ADK_mips64el
  214. help
  215. Support for mips64 little endian systems.
  216. config ADK_LINUX_PPC
  217. bool "ppc system"
  218. select ADK_ppc
  219. help
  220. Support for powerpc systems.
  221. config ADK_LINUX_SPARC
  222. bool "sparc system"
  223. select ADK_sparc
  224. help
  225. Support for sparc systems.
  226. config ADK_LINUX_SPARC64
  227. bool "sparc64 system"
  228. select ADK_sparc64
  229. help
  230. Support for sparc64 systems.
  231. config ADK_LINUX_X86
  232. bool "x86 system"
  233. select ADK_x86
  234. help
  235. Support for x86 systems.
  236. config ADK_LINUX_X86_64
  237. bool "x86_64 system"
  238. select ADK_x86_64
  239. help
  240. Support for x86_64/amd64 systems.
  241. endchoice
  242. choice
  243. prompt "Embedded Devices"
  244. depends on ADK_TARGET_CHOICE
  245. config ADK_LINUX_X86_ALIX
  246. bool "PC Engines ALIX boards"
  247. select ADK_alix
  248. help
  249. Support for Alix boards.
  250. http://www.pcengines.ch
  251. Status: stable
  252. config ADK_LINUX_X86_WRAP
  253. bool "PC Engines WRAP boards"
  254. select ADK_wrap
  255. select ADK_KERNEL_SCSI
  256. select ADK_KERNEL_ATA
  257. select ADK_KERNEL_BLK_DEV_SD
  258. select ADK_KERNEL_EXT2_FS
  259. select ADK_KERNEL_NET_PCI
  260. select ADK_KERNEL_NETDEVICES
  261. select ADK_KERNEL_NET_ETHERNET
  262. select ADK_KERNEL_MII
  263. select ADK_TARGET_WITH_WATCHDOG
  264. select ADK_TARGET_WITH_RTC
  265. help
  266. End of life.
  267. http://www.pcengines.ch/
  268. Status: stable
  269. config ADK_LINUX_ARM_FOXG20
  270. bool "Foxboard (FOXG20)"
  271. select ADK_foxg20
  272. select ADK_EABI
  273. select ADK_KERNEL_NLS
  274. select ADK_KERNEL_EXT2_FS
  275. select ADK_KERNEL_USB
  276. select ADK_KPACKAGE_KMOD_VFAT_FS
  277. select ADK_PACKAGE_KMOD_USB_CONTROLLER
  278. select ADK_KERNEL_NETDEVICES
  279. select ADK_KERNEL_NET_PCI
  280. select ADK_KERNEL_NET_ETHERNET
  281. select ADK_KERNEL_MII
  282. select ADK_TARGET_WITH_USB
  283. help
  284. Support for Foxboard target (foxg20).
  285. http://foxg20.acmesystems.it/doku.php
  286. Status: stable
  287. config ADK_LINUX_CRIS_FOXBOARD
  288. bool "Foxboard (ETRAX LX100)"
  289. select ADK_foxboard
  290. select ADK_PACKAGE_KMOD_USB_CONTROLLER
  291. select ADK_KERNEL_USB
  292. select ADK_KERNEL_NLS
  293. select ADK_KERNEL_NETDEVICES
  294. select ADK_TARGET_WITH_USB
  295. help
  296. Support for Foxboard targets.
  297. http://foxlx.acmesystems.it/
  298. Status: stable
  299. config ADK_LINUX_MIKROTIK
  300. bool "Mikrotik Routerboards"
  301. help
  302. Support for Mikrotik Routerboards
  303. http://www.mikrotik.com
  304. http://www.routerboards.com
  305. config ADK_LINUX_MIPS_AG241
  306. bool "Linksys AG241v2"
  307. select ADK_KERNEL_NETDEVICES
  308. select ADK_KERNEL_NET_PCI
  309. select ADK_KERNEL_NET_ETHERNET
  310. select ADK_KERNEL_MII
  311. select ADK_PACKAGE_KMOD_SANGAM_ATM
  312. select ADK_KPACKAGE_KMOD_ATM_BR2684
  313. select ADK_PACKAGE_BR2684CTL
  314. select ADK_TARGET_WITH_DSL
  315. select ADK_TARGET_WITH_WATCHDOG
  316. select ADK_ag241
  317. help
  318. Linksys AG241 DSL router.
  319. (Texas Instruments AR7 platform)
  320. Status: stable
  321. config ADK_LINUX_MIPS_BRCM
  322. bool "Broadcom BCM47xx based routers"
  323. select ADK_brcm
  324. select ADK_TARGET_WITH_SSB
  325. select ADK_KERNEL_NETDEVICES
  326. select ADK_KERNEL_NET_PCI
  327. select ADK_KERNEL_NET_ETHERNET
  328. select ADK_KERNEL_MII
  329. help
  330. Broadcom bcm47xx based router.
  331. Status: development
  332. endchoice
  333. source "target/Config.in.alix"
  334. source "target/Config.in.mikrotik"
  335. source "target/Config.in.arm"
  336. source "target/Config.in.armel"
  337. source "target/Config.in.mips"
  338. source "target/Config.in.mipsel"
  339. source "target/Config.in.mips64"
  340. source "target/Config.in.mips64el"
  341. source "target/Config.in.ppc"
  342. source "target/Config.in.ppc64"
  343. source "target/Config.in.sparc"
  344. source "target/Config.in.sparc64"
  345. source "target/Config.in.x86"
  346. source "target/Config.in.x86_64"
  347. choice
  348. prompt "Device model"
  349. default ADK_LINUX_CRIS_FOXBOARD_CLASSIC
  350. depends on ADK_LINUX_CRIS_FOXBOARD
  351. config ADK_LINUX_CRIS_FOXBOARD_CLASSIC
  352. bool "Foxboard classic (4x16)"
  353. help
  354. Foxboard classic with red board.
  355. (4 MB flash size and 16 MB RAM)
  356. config ADK_LINUX_CRIS_FOXBOARD_LX
  357. bool "Foxboard LX (8x32)"
  358. help
  359. Latest Foxboard with green board.
  360. (8 MB flash size and 32 MB RAM)
  361. endchoice
  362. source "target/linux/config/Config.in.kernel"
  363. choice
  364. prompt "Target C library"
  365. depends on ! ADK_NATIVE
  366. config ADK_TARGET_LIB_UCLIBC
  367. bool "uClibc embedded C library"
  368. depends on \
  369. !ADK_HARDWARE_LEMOTE_YEELONG && \
  370. !ADK_LINUX_SPARC64
  371. select ADK_uclibc
  372. help
  373. http://uclibc.org
  374. config ADK_TARGET_LIB_EGLIBC
  375. bool "Embedded GNU C library"
  376. select ADK_eglibc
  377. depends on ADK_LINUX_QEMU || \
  378. ADK_LINUX_ARM || \
  379. ADK_LINUX_ARMEL || \
  380. ADK_LINUX_MIPS || \
  381. ADK_LINUX_MIPSEL || \
  382. ADK_LINUX_MIPS64 || \
  383. ADK_LINUX_MIPS64EL || \
  384. ADK_LINUX_PPC || \
  385. ADK_LINUX_SPARC || \
  386. ADK_LINUX_SPARC64 || \
  387. ADK_LINUX_X86 || \
  388. ADK_LINUX_X86_64 || \
  389. ADK_LINUX_ARM_FOXG20 || \
  390. ADK_LINUX_X86_ALIX || \
  391. ADK_LINUX_X86_WRAP || \
  392. ADK_LINUX_MIPS_RB4XX || \
  393. ADK_LINUX_MIPS_RB532
  394. help
  395. http://www.eglibc.org
  396. config ADK_TARGET_LIB_GLIBC
  397. bool "GNU C library"
  398. select ADK_glibc
  399. depends on ADK_LINUX_QEMU || \
  400. ADK_LINUX_ARM || \
  401. ADK_LINUX_ARMEL || \
  402. ADK_LINUX_MIPS || \
  403. ADK_LINUX_MIPSEL || \
  404. ADK_LINUX_MIPS64 || \
  405. ADK_LINUX_MIPS64EL || \
  406. ADK_LINUX_PPC || \
  407. ADK_LINUX_SPARC || \
  408. ADK_LINUX_SPARC64 || \
  409. ADK_LINUX_X86 || \
  410. ADK_LINUX_X86_64 || \
  411. ADK_LINUX_X86_ALIX || \
  412. ADK_LINUX_X86_WRAP || \
  413. ADK_LINUX_MIPS_RB532 || \
  414. ADK_LINUX_MIPS_RB4XX
  415. help
  416. http://www.gnu.org/libc
  417. endchoice
  418. config ADK_TARGET_SUFFIX
  419. string
  420. default "gnueabi" if (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC) && ADK_EABI
  421. default "gnu" if (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC) && !ADK_EABI
  422. default "uclibcgnueabi" if ADK_TARGET_LIB_UCLIBC && ADK_EABI
  423. default "uclibc" if ADK_TARGET_LIB_UCLIBC && !ADK_EABI
  424. choice
  425. prompt "Target Firmware type"
  426. depends on !ADK_TOOLCHAIN_ONLY
  427. default ADK_TARGET_ROOTFS_ARCHIVE
  428. config ADK_TARGET_ROOTFS_INITRAMFS
  429. bool "initramfs filesystem"
  430. depends on \
  431. ADK_LINUX_X86 || \
  432. ADK_LINUX_X86_64 || \
  433. ADK_LINUX_PPC || \
  434. ADK_LINUX_SPARC || \
  435. ADK_LINUX_X86_ALIX || \
  436. ADK_HARDWARE_QEMU || \
  437. ADK_LINUX_NATIVE
  438. select ADK_KERNEL_BLK_DEV_INITRD
  439. help
  440. create an read-only initramfs system.
  441. config ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
  442. bool "initramfs filesystem included into kernel image"
  443. select ADK_LINUX_INITRAMFS_BUILTIN
  444. depends on \
  445. ADK_LINUX_X86_ALIX || \
  446. ADK_LINUX_PPC || \
  447. ADK_LINUX_SPARC || \
  448. ADK_HARDWARE_QEMU || \
  449. ADK_LINUX_X86 || \
  450. ADK_LINUX_X86_64 || \
  451. ADK_LINUX_NATIVE
  452. help
  453. create an read-only initramfs system.
  454. config ADK_TARGET_ROOTFS_SQUASHFS
  455. bool "Compressed read-only root filesystem (squashfs)"
  456. select ADK_KERNEL_SQUASHFS
  457. depends on \
  458. ADK_LINUX_CRIS_FOXBOARD || \
  459. ADK_LINUX_MIPS_AG241
  460. help
  461. highly compressed read-only filesystem for flash.
  462. config ADK_TARGET_ROOTFS_YAFFS
  463. bool "YAFFS2 rootfilesystem (NAND)"
  464. select ADK_KERNEL_MISC_FILESYSTEMS
  465. select ADK_KERNEL_YAFFS_FS
  466. select ADK_KERNEL_YAFFS_YAFFS2
  467. depends on \
  468. ADK_LINUX_MIPS_RB532 || \
  469. ADK_LINUX_MIPS_RB4XX
  470. help
  471. Root filesystem on NAND.
  472. config ADK_TARGET_ROOTFS_NFSROOT
  473. bool "NFS root"
  474. depends on \
  475. ADK_LINUX_CRIS_FOXBOARD || \
  476. ADK_LINUX_ARM_FOXG20 || \
  477. ADK_LINUX_X86_ALIX || \
  478. ADK_LINUX_X86_WRAP || \
  479. ADK_LINUX_MIPS_BRCM || \
  480. ADK_LINUX_MIPS_RB532 || \
  481. ADK_LINUX_MIPS_RB4XX || \
  482. ADK_LINUX_MIPS_AG241 || \
  483. ADK_LINUX_NATIVE
  484. select ADK_KERNEL_SUNRPC
  485. select ADK_KERNEL_NFS_FS
  486. select ADK_KERNEL_NFS_V3
  487. select ADK_KERNEL_ROOT_NFS
  488. select ADK_KERNEL_NFS_COMMON
  489. select ADK_KERNEL_IP_PNP
  490. select ADK_KERNEL_IP_PNP_DHCP
  491. help
  492. Root filesystem mounted via NFS. (DHCP)
  493. config ADK_TARGET_ROOTFS_USB
  494. bool "Boot from USB stick"
  495. select ADK_KERNEL_NLS
  496. select ADK_KERNEL_SCSI
  497. select ADK_KERNEL_BLK_DEV_SD
  498. select ADK_KERNEL_USB
  499. select ADK_KERNEL_USB_EHCI_HCD
  500. select ADK_KERNEL_USB_UHCI_HCD
  501. select ADK_KERNEL_USB_STORAGE
  502. select ADK_KERNEL_EXT2_FS
  503. depends on ADK_LINUX_X86 || ADK_LINUX_X86_64
  504. depends on !ADK_HARDWARE_QEMU
  505. help
  506. Boot system from USB stick.
  507. config ADK_TARGET_ROOTFS_EXT2_BLOCK
  508. bool "read-write filesystem for block devices with ext2"
  509. depends on ADK_LINUX_X86_ALIX || \
  510. ADK_LINUX_X86_WRAP || \
  511. ADK_LINUX_ARM_FOXG20 || \
  512. ADK_LINUX_MIPS_RB532
  513. select ADK_KERNEL_EXT2_FS
  514. select ADK_KERNEL_SCSI
  515. help
  516. Use this option if you have a compact flash or mmc/sd card
  517. reader inside your hardware and want to boot from it.
  518. config ADK_TARGET_ROOTFS_ARCHIVE
  519. bool "Archive usable for different filesystems"
  520. depends on \
  521. ADK_LINUX_NATIVE || \
  522. ADK_LINUX_ARM || \
  523. ADK_LINUX_ARMEL || \
  524. ADK_LINUX_MIPS || \
  525. ADK_LINUX_MIPSEL || \
  526. ADK_LINUX_MIPS64 || \
  527. ADK_LINUX_MIPS64EL || \
  528. ADK_LINUX_PPC || \
  529. ADK_LINUX_PPC64 || \
  530. ADK_LINUX_SPARC || \
  531. ADK_LINUX_SPARC64 || \
  532. ADK_LINUX_QEMU || \
  533. ADK_LINUX_X86 || \
  534. ADK_LINUX_X86_64
  535. help
  536. Use this option if your root filesystem is ext2/ext3/ext4/xfs.
  537. config ADK_TARGET_ROOTFS_ENCRYPTED
  538. bool "Encrypted read-write root filesystem"
  539. select ADK_LINUX_INITRAMFS_BUILTIN
  540. select ADK_PACKAGE_CRYPTINIT
  541. select ADK_KERNEL_BLK_DEV_DM
  542. select ADK_KERNEL_DM_CRYPT
  543. select ADK_KERNEL_CRYPTO_AES
  544. select ADK_KERNEL_CRYPTO_CBC
  545. select ADK_KERNEL_CRYPTO_SHA256
  546. select ADK_KERNEL_XFS_FS
  547. depends on ADK_LINUX_X86 || ADK_LINUX_X86_64
  548. depends on !ADK_HARDWARE_QEMU
  549. help
  550. Use this option if you want an encrypted rootfs.
  551. Default is XFS filesystem. Use following commands to setup
  552. your hard disk, after booting via NFS or USB.
  553. Create at least three partitions with fdisk
  554. /dev/sda1 (ext2)
  555. /dev/sda2 (encrypted root)
  556. /dev/sda3 (swap)
  557. mkdir /mnt/{boot,root}
  558. cryptsetup luksFormat /dev/sda2
  559. cryptsetup luksOpen /dev/sda2 root
  560. cryptsetup luksFormat /dev/sda3
  561. cryptsetup luksOpen /dev/sda3 swap
  562. mkswap /dev/mapper/swap
  563. mkfs.xfs /dev/mapper/root
  564. mount /dev/mapper/root /mnt/root
  565. tar xzvf lemote-mips-encryptedroot.tar.gz -C /mnt/root
  566. mount /dev/sda1 /mnt/boot
  567. mkdir /mnt/boot/boot
  568. cp lemote-mips-kernel /mnt/boot/boot
  569. mv /mnt/root/boot/boot.cfg /mnt/boot/boot
  570. cd /mnt/root ; mknod -m 644 console c 5 1
  571. endchoice
  572. choice
  573. prompt "Compression method for initramfs and kernel"
  574. depends on ADK_TARGET_ROOTFS_INITRAMFS || ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
  575. config ADK_TARGET_INITRAMFS_COMPRESSION_LZMA
  576. boolean
  577. prompt "lzma"
  578. select ADK_KERNEL_RD_LZMA
  579. select ADK_KERNEL_KERNEL_LZMA
  580. help
  581. Select LZMA compression.
  582. config ADK_TARGET_INITRAMFS_COMPRESSION_GZIP
  583. boolean
  584. prompt "gzip"
  585. select ADK_KERNEL_RD_GZIP
  586. select ADK_KERNEL_KERNEL_GZIP
  587. help
  588. Select gzip compression.
  589. config ADK_TARGET_INITRAMFS_COMPRESSION_BZIP2
  590. boolean
  591. prompt "bzip2"
  592. select ADK_KERNEL_RD_BZIP2
  593. select ADK_KERNEL_KERNEL_BZIP2
  594. help
  595. Select BZIP2 compression.
  596. #config ADK_TARGET_INITRAMFS_COMPRESSION_LZO
  597. # boolean
  598. # prompt "lzo"
  599. # select ADK_KERNEL_RD_LZO
  600. # select ADK_KERNEL_KERNEL_LZO
  601. # help
  602. # Select LZO compression.
  603. endchoice
  604. choice
  605. prompt "Compression method for Kernel"
  606. depends on !(ADK_TARGET_ROOTFS_INITRAMFS || ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK || ADK_TOOLCHAIN_ONLY || ADK_LINUX_ARM_FOXG20 )
  607. config ADK_TARGET_KERNEL_COMPRESSION_LZMA
  608. boolean
  609. prompt "lzma"
  610. select ADK_KERNEL_KERNEL_LZMA
  611. help
  612. Select LZMA compression for Kernel.
  613. config ADK_TARGET_KERNEL_COMPRESSION_GZIP
  614. boolean
  615. prompt "gzip"
  616. select ADK_KERNEL_KERNEL_GZIP
  617. help
  618. Select gzip compression for Kernel.
  619. config ADK_TARGET_KERNEL_COMPRESSION_BZIP2
  620. boolean
  621. prompt "bzip2"
  622. select ADK_KERNEL_KERNEL_BZIP2
  623. help
  624. Select BZIP2 compression for Kernel.
  625. config ADK_TARGET_KERNEL_COMPRESSION_LZO
  626. boolean
  627. prompt "lzo"
  628. select ADK_KERNEL_KERNEL_LZO
  629. help
  630. Select LZO compression for Kernel.
  631. endchoice
  632. config ADK_COMPRESSION_TOOL
  633. string
  634. default "gzip -n9" if ADK_TARGET_INITRAMFS_COMPRESSION_GZIP
  635. default "bzip2" if ADK_TARGET_INITRAMFS_COMPRESSION_BZIP2
  636. default "lzma -9" if ADK_TARGET_INITRAMFS_COMPRESSION_LZMA
  637. default "lzop" if ADK_TARGET_INITRAMFS_COMPRESSION_LZO
  638. help
  639. choice
  640. prompt "Root filesystem type"
  641. depends on ADK_TARGET_ROOTFS_ARCHIVE
  642. default ADK_TARGET_ROOT_EXT2_FS
  643. config ADK_TARGET_ROOT_EXT2
  644. boolean
  645. prompt "EXT2 filesystem"
  646. select ADK_KERNEL_EXT2_FS
  647. help
  648. Compile EXT2 filesystem into kernel and use it as root filesystem.
  649. config ADK_TARGET_ROOT_EXT3
  650. boolean
  651. prompt "EXT3 filesystem"
  652. select ADK_KERNEL_EXT3_FS
  653. help
  654. Compile EXT3 filesystem into kernel and use it as root filesystem.
  655. config ADK_TARGET_ROOT_EXT4
  656. boolean
  657. prompt "EXT4 filesystem"
  658. select ADK_KERNEL_EXT4_FS
  659. help
  660. Compile EXT4 filesystem into kernel and use it as root filesystem.
  661. config ADK_TARGET_ROOT_XFS
  662. boolean
  663. prompt "XFS filesystem"
  664. select ADK_KERNEL_XFS_FS
  665. help
  666. Compile XFS filesystem into kernel and use it as root filesystem.
  667. endchoice
  668. config ADK_TARGET_ROOTFS
  669. string
  670. default "xfs" if ADK_TARGET_ROOT_XFS
  671. default "ext2" if ADK_TARGET_ROOT_EXT2
  672. default "ext3" if ADK_TARGET_ROOT_EXT3
  673. default "ext4" if ADK_TARGET_ROOT_EXT4
  674. help
  675. config ADK_PACKAGE_SUFFIX
  676. string
  677. default "ipk" if ADK_TARGET_PACKAGE_IPKG
  678. default "tar.gz" if ADK_TARGET_PACKAGE_TGZ
  679. help
  680. choice
  681. prompt "Package backend format"
  682. default ADK_TARGET_PACKAGE_IPKG
  683. config ADK_TARGET_PACKAGE_IPKG
  684. boolean
  685. prompt "ipkg package format"
  686. select BUSYBOX_IPKG
  687. help
  688. Create ipkg packages and use ipkg package management on
  689. the target.
  690. config ADK_TARGET_PACKAGE_TGZ
  691. boolean
  692. prompt "tar archive (no package manager)"
  693. help
  694. Create compressed tar archives of packages.
  695. Pre- and post install scripts will be executed in the target
  696. directory. There will be no package manager installed onto the target.
  697. endchoice
  698. endmenu