-
Notifications
You must be signed in to change notification settings - Fork 60
/
external.mk
713 lines (681 loc) · 19.1 KB
/
external.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
$(info --- FILE: external.mk ---)
# 0x0800000, 8M, 8_388_608
SIZE_8M := 8388608
# 0x1000000, 16M, 16_777_216
SIZE_16M := 16777216
# 0x2000000, 32M, 33_554_432
SIZE_32M := 33554432
SOC_VENDOR := ingenic
ifeq ($(BR2_SOC_INGENIC_DUMMY),y)
SOC_MODEL := t31x
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T10L),y)
SOC_MODEL := t10l
SOC_RAM := 64
BR2_SOC_INGENIC_T10=y
UBOOT_BOARDNAME="isvp_t10_sfcnor_lite"
else ifeq ($(BR2_SOC_INGENIC_T10N),y)
SOC_MODEL := t10n
SOC_RAM := 64
BR2_SOC_INGENIC_T10=y
UBOOT_BOARDNAME="isvp_t10_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T10A),y)
SOC_MODEL := t10a
SOC_RAM := 64
BR2_SOC_INGENIC_T10=y
UBOOT_BOARDNAME="isvp_t10_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T20L),y)
SOC_MODEL := t20l
SOC_RAM := 64
BR2_SOC_INGENIC_T20=y
UBOOT_BOARDNAME="isvp_t20_sfcnor_lite"
else ifeq ($(BR2_SOC_INGENIC_T20N),y)
SOC_MODEL := t20n
SOC_RAM := 64
BR2_SOC_INGENIC_T20=y
UBOOT_BOARDNAME="isvp_t20_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T20X),y)
SOC_MODEL := t20x
SOC_RAM := 128
BR2_SOC_INGENIC_T20=y
UBOOT_BOARDNAME="isvp_t20_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T21L),y)
SOC_MODEL := t21l
SOC_RAM := 64
BR2_SOC_INGENIC_T21=y
UBOOT_BOARDNAME="isvp_t21_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T21N),y)
SOC_MODEL := t21n
SOC_RAM := 64
BR2_SOC_INGENIC_T21=y
UBOOT_BOARDNAME="isvp_t21_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T21X),y)
SOC_MODEL := t21x
SOC_RAM := 128
BR2_SOC_INGENIC_T21=y
UBOOT_BOARDNAME="isvp_t21_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T21Z),y)
SOC_MODEL := t21zn
SOC_RAM := 64
BR2_SOC_INGENIC_T21=y
UBOOT_BOARDNAME="isvp_t21_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T21ZL),y)
SOC_MODEL := t21zl
SOC_RAM := 64
BR2_SOC_INGENIC_T21=y
UBOOT_BOARDNAME="isvp_t21_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T23N),y)
SOC_MODEL := t23n
SOC_RAM := 64
BR2_SOC_INGENIC_T23=y
UBOOT_BOARDNAME="isvp_t23n_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T23ZN),y)
SOC_MODEL := t23zn
SOC_RAM := 64
BR2_SOC_INGENIC_T23=y
UBOOT_BOARDNAME="isvp_t23n_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T30L),y)
SOC_MODEL := t30l
SOC_RAM := 64
BR2_SOC_INGENIC_T30=y
UBOOT_BOARDNAME="isvp_t30_sfcnor_lite"
else ifeq ($(BR2_SOC_INGENIC_T30N),y)
SOC_MODEL := t30n
SOC_RAM := 64
BR2_SOC_INGENIC_T30=y
UBOOT_BOARDNAME="isvp_t30_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T30X),y)
SOC_MODEL := t30x
SOC_RAM := 128
BR2_SOC_INGENIC_T30=y
UBOOT_BOARDNAME="isvp_t30_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T30A),y)
SOC_MODEL := t30a
SOC_RAM := 128
BR2_SOC_INGENIC_T30=y
UBOOT_BOARDNAME="isvp_t30a_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T31L),y)
SOC_MODEL := t31l
SOC_RAM := 64
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31_sfcnor_lite"
else ifeq ($(BR2_SOC_INGENIC_T31LC),y)
SOC_MODEL := t31lc
SOC_RAM := 64
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31lc_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T31N),y)
SOC_MODEL := t31n
SOC_RAM := 64
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T31X),y)
SOC_MODEL := t31x
SOC_RAM := 128
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T31A),y)
SOC_MODEL := t31a
SOC_RAM := 128
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31a_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T31AL),y)
SOC_MODEL := t31al
SOC_RAM := 128
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31al_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T31ZL),y)
SOC_MODEL := t31zl
SOC_RAM := 64
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME="isvp_t31_sfcnor_lite"
else ifeq ($(BR2_SOC_INGENIC_T31ZX),y)
SOC_MODEL := t31zx
SOC_RAM := 128
BR2_SOC_INGENIC_T31=y
UBOOT_BOARDNAME := "isvp_t31_sfcnor_ddr128M"
else ifeq ($(BR2_SOC_INGENIC_T40N),y)
SOC_MODEL := t40n
SOC_RAM := 128
BR2_SOC_INGENIC_T40=y
UBOOT_BOARDNAME="isvp_t40_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T40NN),y)
SOC_MODEL := t40nn
SOC_RAM := 128
BR2_SOC_INGENIC_T40=y
UBOOT_BOARDNAME="isvp_t40_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T40XP),y)
SOC_MODEL := t40xp
SOC_RAM := 256
BR2_SOC_INGENIC_T40=y
UBOOT_BOARDNAME="isvp_t40_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T40A),y)
SOC_MODEL := t40a
SOC_RAM := 128
BR2_SOC_INGENIC_T40=y
UBOOT_BOARDNAME="isvp_t40_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41LQ),y)
SOC_MODEL := t41lq
SOC_RAM := 64
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41NQ),y)
SOC_MODEL := t41nq
SOC_RAM := 128
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41ZL),y)
SOC_MODEL := t41zl
SOC_RAM := 64
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41ZN),y)
SOC_MODEL := t41zn
SOC_RAM := 128
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41ZX),y)
SOC_MODEL := t41zx
SOC_RAM := 256
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
else ifeq ($(BR2_SOC_INGENIC_T41A),y)
SOC_MODEL := t41a
SOC_RAM := 512
BR2_SOC_INGENIC_T41=y
UBOOT_BOARDNAME="isvp_t41_sfcnor"
endif
# FIXME requires U=Boot >= 2018.05
#BR2_TARGET_UBOOT_DEFAULT_ENV_FILE=$(U_BOOT_ENV_TXT)
# Image sensor
ifeq ($(BR2_SENSOR_DUMMY),y)
SENSOR_MODEL :=
else ifeq ($(BR2_SENSOR_AR1337),y)
SENSOR_MODEL := ar1337
else ifeq ($(BR2_SENSOR_BF3A03),y)
SENSOR_MODEL := bf3a03
else ifeq ($(BR2_SENSOR_C2399),y)
SENSOR_MODEL := c2399
else ifeq ($(BR2_SENSOR_C23A98),y)
SENSOR_MODEL := c23a98
else ifeq ($(BR2_SENSOR_C3390),y)
SENSOR_MODEL := c3390
else ifeq ($(BR2_SENSOR_C4390),y)
SENSOR_MODEL := c4390
else ifeq ($(BR2_SENSOR_CV2001),y)
SENSOR_MODEL := cv2001
else ifeq ($(BR2_SENSOR_CV3001),y)
SENSOR_MODEL := cv3001
else ifeq ($(BR2_SENSOR_CV4001),y)
SENSOR_MODEL := cv4001
else ifeq ($(BR2_SENSOR_GC0328),y)
SENSOR_MODEL := gc0328
else ifeq ($(BR2_SENSOR_GC032A),y)
SENSOR_MODEL := gc032a
else ifeq ($(BR2_SENSOR_GC1034),y)
SENSOR_MODEL := gc1034
else ifeq ($(BR2_SENSOR_GC1054),y)
SENSOR_MODEL := gc1054
else ifeq ($(BR2_SENSOR_GC1084),y)
SENSOR_MODEL := gc1084
else ifeq ($(BR2_SENSOR_GC2023),y)
SENSOR_MODEL := gc2023
else ifeq ($(BR2_SENSOR_GC2033),y)
SENSOR_MODEL := gc2033
else ifeq ($(BR2_SENSOR_GC2053),y)
SENSOR_MODEL := gc2053
else ifeq ($(BR2_SENSOR_GC2063),y)
SENSOR_MODEL := gc2063
else ifeq ($(BR2_SENSOR_GC2083),y)
SENSOR_MODEL := gc2083
else ifeq ($(BR2_SENSOR_GC2093),y)
SENSOR_MODEL := gc2093
else ifeq ($(BR2_SENSOR_GC3003),y)
SENSOR_MODEL := gc3003
else ifeq ($(BR2_SENSOR_GC3003A),y)
SENSOR_MODEL := gc3003a
else ifeq ($(BR2_SENSOR_GC4023),y)
SENSOR_MODEL := gc4023
else ifeq ($(BR2_SENSOR_GC4653),y)
SENSOR_MODEL := gc4653
else ifeq ($(BR2_SENSOR_GC4C33),y)
SENSOR_MODEL := gc4c33
else ifeq ($(BR2_SENSOR_GC5035),y)
SENSOR_MODEL := gc5035
else ifeq ($(BR2_SENSOR_GC5603),y)
SENSOR_MODEL := gc5603
else ifeq ($(BR2_SENSOR_IMX298),y)
SENSOR_MODEL := imx298
else ifeq ($(BR2_SENSOR_IMX307),y)
SENSOR_MODEL := imx307
else ifeq ($(BR2_SENSOR_IMX327),y)
SENSOR_MODEL := imx327
else ifeq ($(BR2_SENSOR_IMX335),y)
SENSOR_MODEL := imx335
else ifeq ($(BR2_SENSOR_JXF22),y)
SENSOR_MODEL := jxf22
else ifeq ($(BR2_SENSOR_JXF23),y)
SENSOR_MODEL := jxf23
else ifeq ($(BR2_SENSOR_JXF28P),y)
SENSOR_MODEL := jxf28p
else ifeq ($(BR2_SENSOR_JXF32),y)
SENSOR_MODEL := jxf32
else ifeq ($(BR2_SENSOR_JXF35),y)
SENSOR_MODEL := jxf35
else ifeq ($(BR2_SENSOR_JXF352),y)
SENSOR_MODEL := jxf352
else ifeq ($(BR2_SENSOR_JXF355P),y)
SENSOR_MODEL := jxf355p
else ifeq ($(BR2_SENSOR_JXF37),y)
SENSOR_MODEL := jxf37
else ifeq ($(BR2_SENSOR_JXF37P),y)
SENSOR_MODEL := jxf37p
else ifeq ($(BR2_SENSOR_JXF38P),y)
SENSOR_MODEL := jxf38p
else ifeq ($(BR2_SENSOR_JXF51),y)
SENSOR_MODEL := jxf51
else ifeq ($(BR2_SENSOR_JXF53),y)
SENSOR_MODEL := jxf53
else ifeq ($(BR2_SENSOR_JXH42),y)
SENSOR_MODEL := jxh42
else ifeq ($(BR2_SENSOR_JXH61P),y)
SENSOR_MODEL := jxh61p
else ifeq ($(BR2_SENSOR_JXH62),y)
SENSOR_MODEL := jxh62
else ifeq ($(BR2_SENSOR_JXH63),y)
SENSOR_MODEL := jxh63
else ifeq ($(BR2_SENSOR_JXH66),y)
SENSOR_MODEL := jxh66
else ifeq ($(BR2_SENSOR_JXK03),y)
SENSOR_MODEL := jxk03
else ifeq ($(BR2_SENSOR_JXK04),y)
SENSOR_MODEL := jxk04
else ifeq ($(BR2_SENSOR_JXK05),y)
SENSOR_MODEL := jxk05
else ifeq ($(BR2_SENSOR_JXK06),y)
SENSOR_MODEL := jxk06
else ifeq ($(BR2_SENSOR_JXQ03),y)
SENSOR_MODEL := jxq03
else ifeq ($(BR2_SENSOR_JXQ03P),y)
SENSOR_MODEL := jxq03p
else ifeq ($(BR2_SENSOR_MIS2006),y)
SENSOR_MODEL := mis2006
else ifeq ($(BR2_SENSOR_MIS2008),y)
SENSOR_MODEL := mis2008
else ifeq ($(BR2_SENSOR_MIS4001),y)
SENSOR_MODEL := mis4001
else ifeq ($(BR2_SENSOR_MIS5001),y)
SENSOR_MODEL := mis5001
else ifeq ($(BR2_SENSOR_OS02B10),y)
SENSOR_MODEL := os02b10
else ifeq ($(BR2_SENSOR_OS02D20),y)
SENSOR_MODEL := os02d20
else ifeq ($(BR2_SENSOR_OS02G10),y)
SENSOR_MODEL := os02g10
else ifeq ($(BR2_SENSOR_OS02K10),y)
SENSOR_MODEL := os02k10
else ifeq ($(BR2_SENSOR_OS03B10),y)
SENSOR_MODEL := os03b10
else ifeq ($(BR2_SENSOR_OS04B10),y)
SENSOR_MODEL := os04b10
else ifeq ($(BR2_SENSOR_OS04C10),y)
SENSOR_MODEL := os04c10
else ifeq ($(BR2_SENSOR_OS04L10),y)
SENSOR_MODEL := os04l10
else ifeq ($(BR2_SENSOR_OS05A10),y)
SENSOR_MODEL := os05a10
else ifeq ($(BR2_SENSOR_OS05A20),y)
SENSOR_MODEL := os05a20
else ifeq ($(BR2_SENSOR_OV2735B),y)
SENSOR_MODEL := ov2735b
else ifeq ($(BR2_SENSOR_OV2740),y)
SENSOR_MODEL := ov2740
else ifeq ($(BR2_SENSOR_OV2745),y)
SENSOR_MODEL := ov2745
else ifeq ($(BR2_SENSOR_OV5648),y)
SENSOR_MODEL := ov5648
else ifeq ($(BR2_SENSOR_OV5695),y)
SENSOR_MODEL := ov5695
else ifeq ($(BR2_SENSOR_OV8856),y)
SENSOR_MODEL := ov8856
else ifeq ($(BR2_SENSOR_OV9712),y)
SENSOR_MODEL := ov9712
else ifeq ($(BR2_SENSOR_OV9732),y)
SENSOR_MODEL := ov9732
else ifeq ($(BR2_SENSOR_OV9750),y)
SENSOR_MODEL := ov9750
else ifeq ($(BR2_SENSOR_PS5258),y)
SENSOR_MODEL := ps5258
else ifeq ($(BR2_SENSOR_PS5260),y)
SENSOR_MODEL := ps5260
else ifeq ($(BR2_SENSOR_PS5268),y)
SENSOR_MODEL := ps5268
else ifeq ($(BR2_SENSOR_PS5270),y)
SENSOR_MODEL := ps5270
else ifeq ($(BR2_SENSOR_PS5520),y)
SENSOR_MODEL := ps5520
else ifeq ($(BR2_SENSOR_SC1235),y)
SENSOR_MODEL := sc1235
else ifeq ($(BR2_SENSOR_SC1346),y)
SENSOR_MODEL := sc1346
else ifeq ($(BR2_SENSOR_SC1A4T),y)
SENSOR_MODEL := sc1a4t
else ifeq ($(BR2_SENSOR_SC200AI),y)
SENSOR_MODEL := sc200ai
else ifeq ($(BR2_SENSOR_SC201CS),y)
SENSOR_MODEL := sc201cs
else ifeq ($(BR2_SENSOR_SC202CS),y)
SENSOR_MODEL := sc202cs
else ifeq ($(BR2_SENSOR_SC2210),y)
SENSOR_MODEL := sc2210
else ifeq ($(BR2_SENSOR_SC2232),y)
SENSOR_MODEL := sc2232
else ifeq ($(BR2_SENSOR_SC2232H),y)
SENSOR_MODEL := sc2232h
else ifeq ($(BR2_SENSOR_SC2235),y)
SENSOR_MODEL := sc2235
else ifeq ($(BR2_SENSOR_SC2239),y)
SENSOR_MODEL := sc2239
else ifeq ($(BR2_SENSOR_SC2239P),y)
SENSOR_MODEL := sc2239p
else ifeq ($(BR2_SENSOR_SC223A),y)
SENSOR_MODEL := sc223a
else ifeq ($(BR2_SENSOR_SC230AI),y)
SENSOR_MODEL := sc230ai
else ifeq ($(BR2_SENSOR_SC2300),y)
SENSOR_MODEL := sc2300
else ifeq ($(BR2_SENSOR_SC2310),y)
SENSOR_MODEL := sc2310
else ifeq ($(BR2_SENSOR_SC2315E),y)
SENSOR_MODEL := sc2315e
else ifeq ($(BR2_SENSOR_SC2332),y)
SENSOR_MODEL := sc2332
else ifeq ($(BR2_SENSOR_SC2335),y)
SENSOR_MODEL := sc2335
else ifeq ($(BR2_SENSOR_SC2336),y)
SENSOR_MODEL := sc2336
else ifeq ($(BR2_SENSOR_SC301IOT),y)
SENSOR_MODEL := sc301IoT
else ifeq ($(BR2_SENSOR_SC3235),y)
SENSOR_MODEL := sc3235
else ifeq ($(BR2_SENSOR_SC3335),y)
SENSOR_MODEL := sc3335
else ifeq ($(BR2_SENSOR_SC3336),y)
SENSOR_MODEL := sc3336
else ifeq ($(BR2_SENSOR_SC3338),y)
SENSOR_MODEL := sc3338
else ifeq ($(BR2_SENSOR_SC401AI),y)
SENSOR_MODEL := sc401ai
else ifeq ($(BR2_SENSOR_SC4236),y)
SENSOR_MODEL := sc4236
else ifeq ($(BR2_SENSOR_SC4236H),y)
SENSOR_MODEL := sc4236h
else ifeq ($(BR2_SENSOR_SC4238),y)
SENSOR_MODEL := sc4238
else ifeq ($(BR2_SENSOR_SC4335),y)
SENSOR_MODEL := sc4335
else ifeq ($(BR2_SENSOR_SC4336),y)
SENSOR_MODEL := sc4336
else ifeq ($(BR2_SENSOR_SC4336P),y)
SENSOR_MODEL := sc4336p
else ifeq ($(BR2_SENSOR_SC450AI),y)
SENSOR_MODEL := sc450ai
else ifeq ($(BR2_SENSOR_SC500AI),y)
SENSOR_MODEL := sc500ai
else ifeq ($(BR2_SENSOR_SC5235),y)
SENSOR_MODEL := sc5235
else ifeq ($(BR2_SENSOR_SP1405),y)
SENSOR_MODEL := sp1405
else ifeq ($(BR2_SENSOR_TP2850),y)
SENSOR_MODEL := tp2850
endif
# Default ISP clock speed
ifeq ($(BR2_ISP_CLK_90MHZ),y)
ISP_CLK := 90000000
else ifeq ($(BR2_ISP_CLK_100MHZ),y)
ISP_CLK := 100000000
else ifeq ($(BR2_ISP_CLK_125MHZ),y)
ISP_CLK := 125000000
else ifeq ($(BR2_ISP_CLK_150MHZ),y)
ISP_CLK := 150000000
else ifeq ($(BR2_ISP_CLK_175MHZ),y)
ISP_CLK := 175000000
else ifeq ($(BR2_ISP_CLK_200MHZ),y)
ISP_CLK := 200000000
else ifeq ($(BR2_ISP_CLK_220MHZ),y)
ISP_CLK := 220000000
else ifeq ($(BR2_ISP_CLK_225MHZ),y)
ISP_CLK := 225000000
else ifeq ($(BR2_ISP_CLK_250MHZ),y)
ISP_CLK := 250000000
else ifeq ($(BR2_ISP_CLK_300MHZ),y)
ISP_CLK := 300000000
else
ISP_CLK := 100000000
endif
AVPU_CLK := 400000000
ifeq ($(BR2_AVPU_CLK_400MHZ),y)
AVPU_CLK := 400000000
else ifeq ($(BR2_AVPU_CLK_450MHZ),y)
AVPU_CLK := 450000000
else ifeq ($(BR2_AVPU_CLK_500MHZ),y)
AVPU_CLK := 500000000
else ifeq ($(BR2_AVPU_CLK_550MHZ),y)
AVPU_CLK := 550000000
else ifeq ($(BR2_AVPU_CLK_600MHZ),y)
AVPU_CLK := 600000000
else ifeq ($(BR2_AVPU_CLK_650MHZ),y)
AVPU_CLK := 650000000
else ifeq ($(BR2_AVPU_CLK_700MHZ),y)
AVPU_CLK := 700000000
endif
AVPU_CLK_SRC :=
ifeq ($(BR2_AVPU_MPLL),y)
AVPU_CLK_SRC := clk_name=mpll
endif
ifeq ($(BR2_AVPU_VPLL),y)
AVPU_CLK_SRC := clk_name=vpll
endif
ifeq ($(BR2_AVPU_INTERNAL),y)
AVPU_CLK_SRC :=
endif
ISP_CLKA_CLK := 400000000
ifeq ($(BR2_ISP_CLKA_400MHZ),y)
ISP_CLKA_CLK := 400000000
else ifeq ($(BR2_ISP_CLKA_450MHZ),y)
ISP_CLKA_CLK := 450000000
else ifeq ($(BR2_ISP_CLKA_500MHZ),y)
ISP_CLKA_CLK := 500000000
else ifeq ($(BR2_ISP_CLKA_550MHZ),y)
ISP_CLKA_CLK := 550000000
else ifeq ($(BR2_ISP_CLKA_600MHZ),y)
ISP_CLKA_CLK := 600000000
else ifeq ($(BR2_ISP_CLKA_650MHZ),y)
ISP_CLKA_CLK := 650000000
else ifeq ($(BR2_ISP_CLKA_700MHZ),y)
ISP_CLKA_CLK := 700000000
endif
ISP_CLK_SRC :=
ifeq ($(BR2_ISP_CLK_SCLKA),y)
ISP_CLK_SRC := clk_name=sclka
endif
ISP_CLKA_SRC :=
ifeq ($(BR2_ISP_CLKA_SCLKA),y)
ISP_CLKA_CLK_SRC := clka_name=sclka
endif
ISP_MEMOPT :=
ifeq ($(BR2_ISP_MEMOPT_0),y)
ISP_MEMOPT :=
endif
ifeq ($(BR2_ISP_MEMOPT_1),y)
ISP_MEMOPT := isp_memopt=1
endif
ifeq ($(BR2_ISP_MEMOPT_2),y)
ISP_MEMOPT := isp_memopt=2
endif
ifeq ($(BR2_ISP_MEMOPT_3),y)
ISP_MEMOPT := isp_memopt=3
endif
ISP_DAY_NIGHT_SWITCH_DROP_FRAME_NUM :=
ifeq ($(BR2_ISP_DAY_NIGHT_SWITCH_DROP_FRAME_NUM),y)
ISP_DAY_NIGHT_SWITCH_DROP_FRAME_NUM := isp_day_night_switch_drop_frame_num=$(BR2_ISP_DAY_NIGHT_SWITCH_DROP_FRAME_NUM_VALUE)
endif
ISP_CH0_PRE_DEQUEUE_TIME :=
ifeq ($(BR2_ISP_CH0_PRE_DEQUEUE_TIME),y)
ISP_CH0_PRE_DEQUEUE_TIME := isp_ch0_pre_dequeue_time=$(BR2_ISP_CH0_PRE_DEQUEUE_TIME_VALUE)
endif
ISP_CH0_PRE_DEQUEUE_INTERRUPT_PROCESS :=
ifeq ($(BR2_ISP_CH0_PRE_DEQUEUE_INTERRUPT_PROCESS),y)
ISP_CH0_PRE_DEQUEUE_INTERRUPT_PROCESS := isp_ch0_pre_dequeue_interrupt_process=$(BR2_ISP_CH0_PRE_DEQUEUE_INTERRUPT_PROCESS_VALUE)
endif
ISP_CH0_PRE_DEQUEUE_VALID_LINES :=
ifeq ($(BR2_ISP_CH0_PRE_DEQUEUE_VALID_LINES),y)
ISP_CH0_PRE_DEQUEUE_VALID_LINES := isp_ch0_pre_dequeue_valid_lines=$(BR2_ISP_CH0_PRE_DEQUEUE_VALID_LINES_VALUE)
endif
ifeq ($(BR2_SOC_INGENIC_T10),y)
SOC_FAMILY := t10
SDK_VERSION := 3.12.0
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T20),y)
SOC_FAMILY := t20
SDK_VERSION := 3.12.0
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T21),y)
SOC_FAMILY := t21
SDK_VERSION := 1.0.33
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T23),y)
SOC_FAMILY := t23
SDK_VERSION := 1.1.0
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T30),y)
SOC_FAMILY := t30
SDK_VERSION := 1.0.5
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T31),y)
SOC_FAMILY := t31
SDK_VERSION := 1.1.6
KERNEL_BRANCH := $(SOC_VENDOR)-t31
else ifeq ($(BR2_SOC_INGENIC_T40),y)
SOC_FAMILY := t40
SDK_VERSION := 1.2.0
KERNEL_BRANCH := $(SOC_VENDOR)-t40
else ifeq ($(BR2_SOC_INGENIC_T41),y)
SOC_FAMILY := t41
SDK_VERSION := 1.2.0
KERNEL_BRANCH := $(SOC_VENDOR)-t41
endif
ifeq ($(FLASH_SIZE_8),y)
$(info FLASH_SIZE_8=$(FLASH_SIZE_8))
FLASH_SIZE := $(SIZE_8M)
else ifeq ($(FLASH_SIZE_16),y)
$(info FLASH_SIZE_16=$(FLASH_SIZE_16))
FLASH_SIZE := $(SIZE_16M)
else ifeq ($(FLASH_SIZE_32),y)
$(info FLASH_SIZE_32=$(FLASH_SIZE_32))
FLASH_SIZE := $(SIZE_32M)
else
FLASH_SIZE := $(SIZE_8M)
endif
$(info FLASH_SIZE=$(FLASH_SIZE))
# default to older kernel if none set
ifneq ($(KERNEL_VERSION_3)$(KERNEL_VERSION_4),y)
$(info Defaulting to kernel 3.x)
KERNEL_VERSION_3=y
endif
ifeq ($(KERNEL_VERSION_3),y)
$(info Building for kernel 3.x)
KERNEL_VERSION = 3.10
KERNEL_SITE = https://github.com/gtxaspec/thingino-linux
KERNEL_BRANCH = ingenic-t31
else ifeq ($(KERNEL_VERSION_4),y)
$(info Building for kernel 4.x)
KERNEL_VERSION = 4.4
KERNEL_SITE = https://github.com/matteius/ingenic-t31-zrt-kernel-4.4.94
KERNEL_BRANCH = stable
endif
KERNEL_HASH = $(shell git ls-remote $(KERNEL_SITE) $(KERNEL_BRANCH) | head -1 | cut -f1)
$(info KERNEL_HASH=$(shell git ls-remote $(KERNEL_SITE) $(KERNEL_BRANCH) | head -1 | cut -f1))
THINGINO_KERNEL = $(KERNEL_SITE)/archive/$(KERNEL_HASH).tar.gz
$(info THINGINO_KERNEL=$(THINGINO_KERNEL))
THINGINO_UBOOT_REPO = https://github.com/gtxaspec/u-boot-ingenic
THINGINO_UBOOT_REPO_BRANCH = master
THINGINO_UBOOT_REPO_VERSION = $(shell git ls-remote $(THINGINO_UBOOT_REPO) $(THINGINO_UBOOT_REPO_BRANCH) | head -1 | cut -f1)
$(info THINGINO_UBOOT_REPO=$(THINGINO_UBOOT_REPO))
$(info THINGINO_UBOOT_REPO_BRANCH=$(THINGINO_UBOOT_REPO_BRANCH))
$(info THINGINO_UBOOT_REPO_VERSION=$(THINGINO_UBOOT_REPO_VERSION))
ifeq ($(BR2_PACKAGE_RAPTOR_IPC),y)
STREAMER := raptor
else ifeq ($(BR2_PACKAGE_PRUDYNT_T),y)
STREAMER := prudynt
endif
SOC_MODEL_LESS_Z = $(subst z,,$(SOC_MODEL))
$(info SOC_MODEL_LESS_Z: $(SOC_MODEL_LESS_Z))
SOC_FAMILY_CAPS = $(shell echo $(SOC_FAMILY) | tr a-z A-Z)
$(info SOC_FAMILY_CAPS: $(SOC_FAMILY_CAPS))
# Determine project C library, set SDK C library and toolchain version
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
BR2_LIBC_NAME := glibc
SDK_LIBC_NAME := glibc
else ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
BR2_LIBC_NAME := uclibc
SDK_LIBC_NAME := uclibc
else ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
BR2_LIBC_NAME := musl
SDK_LIBC_NAME := uclibc
else
# default to uClibc libs
BR2_LIBC_NAME := unknown
SDK_LIBC_NAME := uclibc
endif
ifeq ($(BR2_SOC_INGENIC_T10)$(BR2_SOC_INGENIC_T20)$(BR2_SOC_INGENIC_T21)$(BR2_SOC_INGENIC_T30),y)
SDK_LIBC_VERSION := 4.7.2
else
SDK_LIBC_VERSION := 5.4.0
endif
ifeq ($(BR2_SOC_INGENIC_T31),y)
ifeq ($(KERNEL_VERSION_4),y)
SDK_LIBC_VERSION := 4.7.2
SDK_LIBC_NAME := uclibc
SDK_VERSION := 1.1.5.2
endif
endif
$(info Building using $(BR2_LIBC_NAME) with $(SDK_LIBC_NAME) libs for GCC $(SDK_LIBC_VERSION) toolchain from $(SDK_VERSION) SDK)
export SOC_VENDOR
export SOC_FAMILY
export SOC_MODEL
export SOC_MODEL_LESS_Z
export SOC_RAM
export SENSOR_MODEL
export FLASH_SIZE
export THINGINO_KERNEL
export THINGINO_UBOOT_REPO
export THINGINO_UBOOT_REPO_BRANCH
export THINGINO_UBOOT_REPO_VERSION
export KERNEL_SITE
export KERNEL_BRANCH
export KERNEL_HASH
export KERNEL_VERSION
export STREAMER
export UBOOT_BOARDNAME
export ISP_CLK
export ISP_MEMOPT
export ISP_DAY_NIGHT_SWITCH_DROP_FRAME_NUM
export ISP_CH0_PRE_DEQUEUE_TIME
export ISP_CH0_PRE_DEQUEUE_INTERRUPT_PROCESS
export ISP_CH0_PRE_DEQUEUE_VALID_LINES
export AVPU_CLK
export AVPU_CLK_SRC
export BR2_MOTORS
export BR2_MOTORS_TCU
export BR2_MOTORS_SPI
export BR2_THINGINO_DEVICE_TYPE_IPCAM
export BR2_THINGINO_DEVICE_TYPE_IPCAM_PAN_TILT
export BR2_THINGINO_DEVICE_TYPE_IPCAM_PAN_TILT_ZOOM
export BR2_THINGINO_DEVICE_TYPE_IPCAM
export BR2_THINGINO_DEVICE_TYPE_DOORBELL
ifneq ($(BR2_SOC_INGENIC_DUMMY),y)
# include makefiles from packages
include $(sort $(wildcard $(BR2_EXTERNAL)/package/*/*.mk))
endif