xref: /utopia/UTPA2-700.0.x/projects/build/Kconfig (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5mainmenu "Utopia Configuration"
6
7choice
8	prompt "Mstar CHIP"
9    default None
10
11config EMERALD
12	bool "Emerald"
13	help
14	  Select If the operation system is on Emerald.
15	  If unsure, say 'N'.
16
17config EDISON
18	bool "Edison"
19	help
20	  Select If the operation system is on Edison.
21	  If unsure, say 'N'.
22
23config EDEN
24	bool "Eden"
25	help
26	  Select If the operation system is on Eden.
27	  If unsure, say 'N'.
28
29config EIFFEL
30	bool "Eiffel"
31	help
32	  Select If the operation system is on Eiffel
33	  If unsure, say 'N'.
34
35config EULER
36	bool "Euler"
37	help
38	  Select If the operation system is on Euler.
39	  If unsure, say 'N'.
40
41config AMETHYST
42	bool "Amethyst"
43	help
44	  Select If the operation system is on Amethyst.
45	  If unsure, say 'N'.
46
47config MACAW12
48	bool "Macaw12"
49	help
50	  Select If the operation system is on Macaw12.
51	  If unsure, say 'N'.
52
53config K1
54	bool "K1"
55	help
56	  Select If the operation system is on K1.
57	  If unsure, say 'N'.
58
59config KERES
60	bool "Keres"
61	help
62	  Select If the operation system is on Keres.
63	  If unsure, say 'N'.
64
65config KIRIN
66	bool "Kirin"
67	help
68	  Select If the operation system is on kirin.
69	  If unsure, say 'N'.
70
71config KRIS
72	bool "Kris"
73	help
74	  Select If the operation system is on kris.
75	  If unsure, say 'N'.
76
77config NIKE
78	bool "Nike"
79	help
80	  Select If the operation system is on Nike.
81	  If unsure, say 'N'.
82
83config MADISON
84	bool "Madison"
85	help
86	  Select If the operation system is on Madison.
87	  If unsure, say 'N'.
88
89config MIAMI
90	bool "Miami"
91	help
92	  Select If the operation system is on Miami.
93	  If unsure, say 'N'.
94
95config EINSTEIN
96	bool "Einstein"
97	help
98	  Select If the operation system is on Einstein.
99	  If unsure, say 'N'.
100
101config NAPOLI
102	bool "Napoli"
103	help
104	  Select If the operation system is on Einstein.
105	  If unsure, say 'N'.
106
107config EINSTEIN3
108	bool "Einstein3"
109	help
110	  Select If the operation system is on Einstein3.
111	  If unsure, say 'N'.
112
113config KAISER
114	bool "Kaiser"
115	help
116	  Select If the operation system is on Kaiser.
117	  If unsure, say 'N'.
118
119config MONACO
120	bool "Monaco"
121	help
122	  Select If the operation system is on Monaco.
123	  If unsure, say 'N'.
124
125config CLIPPERS
126	bool "Clippers"
127	help
128	  Select If the operation system is on Clippers.
129	  If unsure, say 'N'.
130
131config CELTICS
132	bool "Celtics"
133	help
134	  Select If the operation system is on Celtics.
135	  If unsure, say 'N'.
136
137config MUJI
138	bool "Muji"
139	help
140	  Select If the operation system is on Muji.
141	  If unsure, say 'N'.
142
143config MUNICH
144	bool "Munich"
145	help
146	  Select If the operation system is on Munich.
147	  If unsure, say 'N'.
148
149config KANO
150        bool "Kano"
151        help
152          Select If the operation system is on Munich.
153          If unsure, say 'N'.
154
155config MONET
156	bool "Monet"
157	help
158	  Select If the operation system is on Monet.
159	  If unsure, say 'N'.
160
161config MANHATTAN
162	bool "Manhattan"
163	help
164	  Select If the operation system is on Manhattan.
165	  If unsure, say 'N'.
166
167config MESSI
168	bool "Messi"
169	help
170	  Select If the operation system is on Messi.
171	  If unsure, say 'N'.
172
173config MASERATI
174	bool "Maserati"
175	help
176	  Select If the operation system is on Maserati.
177	  If unsure, say 'N'.
178
179config M7821
180	bool "M7821"
181	help
182	  Select If the operation system is on M7821.
183	  If unsure, say 'N'.
184
185config MAXIM
186	bool "Maxim"
187	help
188	  Select If the operation system is on Maxim.
189	  If unsure, say 'N'.
190
191config K6
192        bool "K6"
193        help
194          Select If the operation system is on K6.
195          If unsure, say 'N'.
196
197config K6LITE
198        bool "K6Lite"
199        help
200          Select If the operation system is on K6Lite.
201          If unsure, say 'N'.
202
203config K7U
204        bool "K7U"
205        help
206          Select If the operation system is on K7U.
207          If unsure, say 'N'.
208
209config CURRY
210        bool "Curry"
211        help
212          Select If the operation system is on Curry.
213          If unsure, say 'N'.
214
215config MUSTANG
216        bool "Mustang"
217        help
218          Select If the operation system is on Mustang.
219          If unsure, say 'N'.
220
221config M7621
222	bool "M7621"
223	help
224	  Select If the operation system is on M7621.
225	  If unsure, say 'N'.
226
227endchoice
228
229config CHIP
230	string
231	default "emerald" if EMERALD
232	default "edison" if EDISON
233	default "eden" if EDEN
234	default "eiffel" if EIFFEL
235	default "euler" if EULER
236	default "amethyst" if AMETHYST
237	default "macaw12" if MACAW12
238	default "k1" if K1
239	default "keres" if KERES
240	default "kirin" if KIRIN
241	default "kris" if KRIS
242	default "nike" if NIKE
243	default "madison" if MADISON
244	default "miami" if MIAMI
245	default "einstein" if EINSTEIN
246	default "napoli" if NAPOLI
247	default "einstein3" if EINSTEIN3
248	default "kaiser" if KAISER
249	default "monaco" if MONACO
250	default "clippers" if CLIPPERS
251	default "celtics" if CELTICS
252	default "muji" if MUJI
253	default "munich" if MUNICH
254	default "kano" if KANO
255	default "monet" if MONET
256	default "messi" if MESSI
257	default "manhattan" if MANHATTAN
258	default "maserati" if MASERATI
259	default "M7821" if M7821
260	default "maxim" if MAXIM
261	default "k6" if K6
262	default "k6lite" if K6LITE
263	default "k7u" if K7U
264        default "curry" if CURRY
265	default "M7621" if M7621
266	default "mustang" if MUSTANG
267	help
268	  Mstar Chip
269#
270#
271#
272#
273#
274
275menu "Utopia Platform Configuration"
276
277choice
278	prompt "CPU Type"
279    default None
280
281config ARM_CA53
282	bool "ARM_CA53"
283	select DLMALLOC
284	help
285	  Select If the architecture of this chip is based on ARM_CA53 architecture.
286	  If unsure, say 'N'.
287
288config ARM_CA12
289	bool "ARM_CA12"
290	help
291	  Select If the architecture of this chip is based on ARM_CA12 architecture.
292	  If unsure, say 'N'.
293
294config ARM_CA9
295	bool "ARM_CA9"
296	help
297	  Select If the architecture of this chip is based on ARM_CA9 architecture.
298	  If unsure, say 'N'.
299
300config ARM_CA7
301	bool "ARM_CA7"
302	help
303	  Select If the architecture of this chip is based on ARM_CA7 architecture.
304	  If unsure, say 'N'.
305
306config MIPS_4KE
307	bool "MIPS_4KE"
308	help
309	  Select If the architecture of this chip is based on MIPS_4KE architecture.
310	  If unsure, say 'N'.
311
312config MIPS_34K
313	bool "MIPS_34K"
314	help
315	  Select If the architecture of this chip is based on MIPS_34K architecture.
316	  If unsure, say 'N'.
317
318config MIPS_74K
319	bool "MIPS_74K"
320	help
321	  Select If the architecture of this chip is based on MIPS_74K architecture.
322	  If unsure, say 'N'.
323
324config AEON
325	bool "AEON"
326	help
327	  Select If the architecture of this chip is based on AEON architecture.
328	  If unsure, say 'N'.
329
330config R2
331	bool "R2"
332	help
333	  Select If the architecture of this chip is based on R2 architecture.
334	  If unsure, say 'N'.
335endchoice
336
337config MCU_TYPE
338	string
339	default "arm_ca53" if ARM_CA53
340	default "arm_ca12" if ARM_CA12
341	default "arm9" if ARM_CA9
342	default "arm_ca7" if ARM_CA7
343	default "mips4ke" if MIPS_4KE
344	default "mips34k" if MIPS_34K
345	default "mips74k" if MIPS_74K
346	default "aeon" if AEON
347	default "aeon" if R2
348	help
349	  Select the architecture of this platform.
350#
351#
352#
353#
354#
355#
356
357choice
358	prompt "FPU Type"
359    default None
360
361config SOFT
362	bool "soft float"
363	help
364	  Select If the operation system use soft floating point unit.
365	  If unsure, say 'N'.
366
367config HARD
368	bool "hard float"
369	help
370	  Select If the operation system use hard floating point unit.
371	  If unsure, say 'N'.
372endchoice
373
374config FPU
375	string
376	default "soft" if SOFT
377	default "hard" if HARD
378	help
379	  Floating point unit selection
380#
381#
382#
383#
384#
385#
386
387choice
388	prompt "OS Type"
389    default None
390
391config NOS
392	bool "Non-os system"
393	help
394	  Select If the operation system of this chip is Non-os system.
395	  If unsure, say 'N'.
396
397config LINUX
398	bool "Linux system"
399	help
400	  Select If the operation system of this chip is Linux system.
401	  If unsure, say 'N'.
402
403config MS_DEBUG_XC_LOG
404bool "xc debug switch"
405depends on LINUX
406default y
407---help---
408Enable the xc log switch
409
410config ECOS
411	bool "Ecos system"
412	help
413	  Select If the operation system of this chip is Ecos system.
414	  If unsure, say 'N'.
415
416config NUTTX
417	bool "Nuttx system"
418	help
419	  Select If the operation system of this chip is Nuttx system.
420	  If unsure, say 'N'.
421
422config UCOS
423	bool "ucos system"
424	help
425	  Select If the operation system of this chip is ucos system.
426	  If unsure, say 'N'.
427
428config OPTEE
429	bool "Optee system"
430	help
431	  Select If the operation system of this chip is Optee system.
432	  If unsure, say 'N'.
433
434endchoice
435
436config OS_TYPE
437	string
438	default "nos" if NOS
439	default "linux" if LINUX
440	default "ecos" if ECOS
441	default "nuttx" if NUTTX
442	default "ucos" if UCOS
443	default "optee" if OPTEE
444	help
445	  Select the operation system.
446#
447#
448#
449#
450#
451#
452
453choice
454	prompt "Project extended Flag"
455    default None
456
457config TVOS
458	bool "TVOS"
459	help
460	  Select If the operation system of this chip is ecos system.
461	  If unsure, say 'N'.
462
463config ANDROID
464	bool "Android"
465	help
466	  Select If the operation system of this chip is ecos system.
467	  If unsure, say 'N'.
468
469config MBOOT
470	bool "Mboot"
471	help
472	  Select If the operation system of this chip is Nuttx system.
473	  If unsure, say 'N'.
474
475config CHAKRA2
476	bool "Chakra2"
477	help
478	  Select If the operation system of this chip is non-os system.
479	  It is a Chakra2-like systems including Chakra2,Chakra3, etc.
480	  If unsure, say 'N'.
481
482config PUMABOOT
483	bool "PumaBoot"
484	help
485	  Select If the operation system of this chip is non-os system.
486	  It is a Chakra2-like systems including Pumaboot(BootVideo), etc.
487	  If unsure, say 'N'.
488
489config FRC
490	bool "FRC"
491	help
492	  Select If the operation system of this chip is non-os system.
493	  If unsure, say 'N'.
494endchoice
495
496config EXT_PLATFORM_FLAG
497	string
498	default "tvos" if TVOS
499	default "android" if ANDROID
500	default "mboot" if MBOOT
501	default "chakra2" if CHAKRA2
502	default "pumaboot" if PUMABOOT
503	default "frc" if FRC
504	help
505	  Select extra platform option.
506
507choice
508	prompt "Customization Flag"
509	default None
510
511config None
512	bool "None"
513
514config ROLLS_ROYCE
515	bool "ROLLS_ROYCE"
516
517endchoice
518#
519#
520#
521#
522#
523#
524
525choice
526	prompt "Kernel Version"
527    default None
528
529config KERN_3_1_10
530	bool "3.1.10"
531	help
532	  Select If the Linux Kernel version is 3.1.10 used for kernel driver.
533	  If unsure, say 'N'.
534
535config KERN_3_10_23
536	bool "3.10.23"
537	help
538	  Select If the Linux Kernel version is 3.10.23 used for kernel driver.
539	  If unsure, say 'N'.
540
541config KERN_3_10_40
542	bool "3.10.40"
543	help
544	  Select If the Linux Kernel version is 3.10.40 used for kernel driver.
545	  If unsure, say 'N'.
546
547config KERN_3_10_86
548	bool "3.10.86"
549	help
550	  Select If the Linux Kernel version is 3.10.86 used for kernel driver.
551	  If unsure, say 'N'.
552
553endchoice
554
555config KERN_VER
556	string
557	default "3.1.10" if KERN_3_1_10
558	default "3.10.23" if KERN_3_10_23
559	default "3.10.40" if KERN_3_10_40
560	default "3.10.86" if KERN_3_10_86
561	help
562	  Linux Kernel Version for K-Driver.
563
564config FPGA
565	bool "FPGA environment"
566	default n
567
568config DLMALLOC
569	bool "MsOS use dlmalloc do memory management"
570	default n
571
572config KERNEL_DLMALLOC
573	bool "MsOS trigger kernel_dlmalloc do memory management"
574		default n
575
576config CHIP_INT_SPI_MODE
577	bool "Enable GIC spi mode"
578	default n
579
580config DONT_USE_CMA
581	bool "Do not use CMA"
582	default n
583
584config MLOG
585	bool "Framework has MLog support"
586	help
587	  Select If the framework of this chip supports MLog.
588	  If unsure, say 'N'.
589	default n
590
591choice
592	prompt "MLog Library Version"
593    default None
594    depends on MLOG
595
596config MLOG_ARM_472
597	bool "ARM 4.7.2 library"
598
599config MLOG_ARM_483
600	bool "ARM 4.8.3 library"
601
602config MLOG_ARM_49X
603	bool "ARM 4.9.X library"
604
605endchoice
606
607config MSOS_EVENTGROUP_MAX_SEL
608	bool "Manually select maximum number of msos event group"
609	default n
610
611config MSOS_EVENTGROUP_MAX_NUM
612	int "Maximum number of msos event group"
613	default 64
614	depends on MSOS_EVENTGROUP_MAX_SEL
615
616endmenu
617#
618#
619#
620#
621#
622#
623
624
625menu "General Setup"
626
627config TOOLCHAIN
628	string "CROSS COMPILE"
629	default "arm-none-linux-gnueabi"
630	help
631	  Select the cross compiler
632
633config TOOLCHAIN_VER
634    string "Cross compiler version"
635    default "4.7.2" if TOOLCHAIN="arm-none-linux-gnueabi"
636    default "4.9.2" if TOOLCHAIN="aarch64-linux-gnu"
637    help
638        Select cross compiler version
639
640config ENDIAN
641	string "Endian"
642	default "mlittle-endian"
643	help
644	  Select big or little endian
645
646endmenu
647#
648#
649#
650#
651#
652
653menu "Build Options"
654
655choice
656	prompt "LINK_TYPE"
657	default None
658
659config STATIC
660	bool "Static"
661	help
662	  Select If the operation system of this chip is Nuttx system.
663	  If unsure, say 'N'.
664
665config DYNAMIC
666	bool "Dynamic"
667	help
668	  Select If the operation system of this chip is Nuttx system.
669	  If unsure, say 'N'.
670endchoice
671
672config LINK_TYPE
673	string
674	default "static" if STATIC
675	default "dynamic" if DYNAMIC
676	help
677	  Select the the linking type
678#
679#
680#
681#
682#
683
684choice
685	prompt "MAKE_TYPE"
686	default None
687
688config LIB
689	bool "Lib"
690	help
691	  Select If the library is built as 'lib' format
692	  If unsure, say 'N'.
693
694config EXE
695	bool "Exe"
696	help
697	  Select If the library is built as 'exe' format
698	  If unsure, say 'N'.
699
700config LINT
701	bool "Lint"
702	help
703	  Select If the library is built as 'lint' format
704	  If unsure, say 'N'.
705endchoice
706
707config MAKE_TYPE
708	string
709	default "lib" if LIB
710	default "exe" if EXE
711	default "lint" if LINT
712	help
713	  Make type
714#
715#
716#
717#
718#
719
720choice
721	prompt "Release Type"
722	default None
723
724config DEBUG
725	bool "Debug"
726	help
727	  Select If the libraries release is on debug level.
728	  If unsure, say 'N'.
729
730config RETAIL
731	bool "Retail"
732	help
733	  Select If the libraries release is on retail level.
734	  If unsure, say 'N'.
735endchoice
736
737config BLT_TYPE
738	string
739	default "debug" if DEBUG
740	default "retail" if RETAIL
741	help
742	  Select the type of libraries release.
743#
744#
745#
746#
747#
748
749choice
750	prompt "Debug Level"
751	default None
752
753config LEVEL_1
754	bool "Level 1(HAL)"
755	help
756	  Select If the operation system of this chip is Nuttx system.
757	  If unsure, say 'N'.
758
759config LEVEL_2
760	bool "Level 2(Driver)"
761	help
762	  Select If the operation system of this chip is Nuttx system.
763	  If unsure, say 'N'.
764
765config LEVEL_3
766	bool "Level 3(Middleware)"
767	help
768	  Select If the operation system of this chip is Nuttx system.
769	  If unsure, say 'N'.
770
771config LEVEL_4
772	bool "Level 4(API)"
773	help
774	  Select If the operation system of this chip is Nuttx system.
775	  If unsure, say 'N'.
776
777config LEVEL_5
778	bool "Level 5(Application)"
779	help
780	  Select If the operation system of this chip is Nuttx system.
781	  If unsure, say 'N'.
782endchoice
783
784config DEBUG_LEVEL
785	string
786	default "1" if LEVEL_1
787	default "2" if LEVEL_2
788	default "3" if LEVEL_3
789	default "4" if LEVEL_4
790	default "5" if LEVEL_5
791	help
792	  Select the debug level
793#
794#
795#
796#
797#
798
799choice
800	prompt "Firmware Type"
801	default None
802
803config FW_TYPE_EXTERNAL
804	bool "external"
805	help
806	  Select If you want to use external firmware
807
808config FW_TYPE_EMBEDDED
809	bool "embedded"
810	help
811	  Select If you want to use embedded firmware
812
813endchoice
814
815config PURE_SN
816	bool "for pure sn config"
817	default n
818
819config BIFROST_32BIT_MODE
820	bool "for bifrost 32bit mode"
821	default n
822
823config MIU_64BIT_DOMAIN_SEL
824	bool "for miu 64bit domain setting"
825	default n
826
827config FW_TYPE
828	string
829	default "external" if FW_TYPE_EXTERNAL
830	default "embedded" if FW_TYPE_EMBEDDED
831	help
832	  Select If you want to use external or embedded  firmware
833#
834#
835#
836#
837#
838
839config INCREMENTAL_BUILD
840        bool "Incremental Build"
841        default n
842        help
843            Enable incremental Build
844
845config STACK_PROTECTOR
846        bool "Stack protector" if (LINUX && TOOLCHAIN_VER!="4.7.2")
847        default n
848        help
849            Enable Stack protector build option -fstack-protector
850
851#
852#
853#
854#
855#
856
857choice
858	prompt "Assert Type"
859	default None
860
861config NON_BLOCK
862	bool "non_block"
863	help
864	  Not cause core dump when asert happen.
865
866config BLOCK
867	bool "block"
868	help
869	  Cause core dump when asert happen.
870endchoice
871
872config ASSERT_TYPE
873	string
874	default "non_block" if NON_BLOCK
875	default "block" if BLOCK
876	help
877	  Select the type of utopia assert.
878
879config VERSION_INFO_EMBADE
880        bool "Embade the ChangeList number of version_info into library"
881        default n
882        help
883            Enable version information embadder
884
885config UTOPIA_20
886        bool "UTOPIA 20"
887        default y
888        help
889          Select if you want to enable Utopia 2_0. If unsure, say 'Y'.
890endmenu
891
892
893source "../../mxlib/drv/Kconfig"
894source "../../mxlib/api/Kconfig"
895source "../../mxlib/utopia_core/Kconfig"
896