forked from oe-alliance/build-enviroment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
868 lines (816 loc) · 22.8 KB
/
Makefile
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
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
#!/usr/bin/make -f
# Adjust according to the number CPU cores to use for parallel build.
# Default: Number of processors in /proc/cpuinfo, if present, or 1.
NR_CPU := $(shell [ -f /proc/cpuinfo ] && grep -c '^processor\s*:' /proc/cpuinfo || echo 1)
BB_NUMBER_THREADS ?= $(NR_CPU)
PARALLEL_MAKE ?= -j $(NR_CPU)
XSUM ?= md5sum
DISTRO_TYPE ?= release
DISTRO ?= openatv
ONLINECHECK_URL ?= "http://google.com"
ONLINECHECK_TIMEOUT ?= 2
BUILD_DIR = $(CURDIR)/builds/$(DISTRO)/$(DISTRO_TYPE)/$(MACHINE)
TOPDIR = $(BUILD_DIR)
DL_DIR = $(CURDIR)/sources
SSTATE_DIR = $(CURDIR)/builds/$(DISTRO)/sstate-cache
TMPDIR = $(TOPDIR)/tmp
DEPDIR = $(TOPDIR)/.deps
MACHINEBUILD = $(MACHINE)
export MACHINEBUILD
BBLAYERS ?= \
$(CURDIR)/openembedded-core/meta \
$(CURDIR)/meta-openembedded/meta-oe \
$(CURDIR)/meta-openembedded/meta-multimedia \
$(CURDIR)/meta-openembedded/meta-networking \
$(CURDIR)/meta-openembedded/meta-filesystems \
$(CURDIR)/meta-openembedded/meta-python \
$(CURDIR)/meta-oe-alliance/meta-oe \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-airdigital \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-azbox \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ax \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-blackbox \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ceryon \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-cube \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-dags \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-dream \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ebox \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-entwopia \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-formuler \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-fulan \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-gfutures \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-gigablue \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ini \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ixuss \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-broadmedia \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-odin \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-octagon \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-protek \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-skylake \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-tiviar \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-tripledot \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-ultramini \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-vuplus \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-wetek \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-xp \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-xtrend \
$(CURDIR)/meta-oe-alliance/meta-brands/meta-xcore \
$(CURDIR)/meta-local \
CONFFILES = \
$(TOPDIR)/env.source \
$(TOPDIR)/conf/$(DISTRO).conf \
$(TOPDIR)/conf/bblayers.conf \
$(TOPDIR)/conf/local.conf \
$(TOPDIR)/conf/site.conf
CONFDEPS = \
$(DEPDIR)/.env.source.$(BITBAKE_ENV_HASH) \
$(DEPDIR)/.$(DISTRO).conf.$($(DISTRO)_CONF_HASH) \
$(DEPDIR)/.bblayers.conf.$(BBLAYERS_CONF_HASH) \
$(DEPDIR)/.local.conf.$(LOCAL_CONF_HASH)
GIT ?= git
GIT_REMOTE := $(shell $(GIT) remote)
GIT_USER_NAME := $(shell $(GIT) config user.name)
GIT_USER_EMAIL := $(shell $(GIT) config user.email)
hash = $(shell echo $(1) | $(XSUM) | awk '{print $$1}')
.DEFAULT_GOAL := all
all: init
@echo
@echo "Openembedded for the oe-alliance environment has been initialized"
@echo "properly. Now you can start building your image, by doing either:"
@echo
@echo "MACHINE=mutant2400 DISTRO=openatv DISTRO_TYPE=release make image"
@echo " or"
@echo "cd $(BUILD_DIR) ; source env.source ; bitbake $(DISTRO)-image"
@echo
$(BBLAYERS):
[ -d $@ ] || $(MAKE) $(MFLAGS) update
setupmbuild:
ifeq ($(MACHINEBUILD),tm2t)
MACHINE=dags7335
MACHINEBUILD=tm2t
else ifeq ($(MACHINEBUILD),tmnano)
MACHINE=dags7335
MACHINEBUILD=tmnano
else ifeq ($(MACHINEBUILD),tmnano2t)
MACHINE=dags7335
MACHINEBUILD=tmnano2t
else ifeq ($(MACHINEBUILD),tmsingle)
MACHINE=dags7335
MACHINEBUILD=tmsingle
else ifeq ($(MACHINEBUILD),tmtwin)
MACHINE=dags7335
MACHINEBUILD=tmtwin
else ifeq ($(MACHINEBUILD),iqonios100hd)
MACHINE=dags7335
MACHINEBUILD=iqonios100hd
else ifeq ($(MACHINEBUILD),iqonios300hd)
MACHINE=dags7335
MACHINEBUILD=iqonios300hd
else ifeq ($(MACHINEBUILD),iqonios300hdv2)
MACHINE=dags7335
MACHINEBUILD=iqonios300hdv2
else ifeq ($(MACHINEBUILD),optimussos1)
MACHINE=dags7335
MACHINEBUILD=optimussos1
else ifeq ($(MACHINEBUILD),mediabox)
MACHINE=dags7335
MACHINEBUILD=mediabox
else ifeq ($(MACHINEBUILD),iqonios200hd)
MACHINE=dags7335
MACHINEBUILD=iqonios200hd
else ifeq ($(MACHINEBUILD),roxxs200hd)
MACHINE=dags7335
MACHINEBUILD=roxxs200hd
else ifeq ($(MACHINEBUILD),mediaart200hd)
MACHINE=dags7335
MACHINEBUILD=mediaart200hd
else ifeq ($(MACHINEBUILD),optimussos2)
MACHINE=dags7335
MACHINEBUILD=optimussos2
else ifeq ($(MACHINEBUILD),tmnano2super)
MACHINE=dags7356
MACHINEBUILD=tmnano2super
else ifeq ($(MACHINEBUILD),tmnano3t)
MACHINE=dags7356
MACHINEBUILD=tmnano3t
else ifeq ($(MACHINEBUILD),tmnanose)
MACHINE=dags7362
MACHINEBUILD=tmnanose
else ifeq ($(MACHINEBUILD),tmnanoseplus)
MACHINE=dags7362
MACHINEBUILD=tmnanoseplus
else ifeq ($(MACHINEBUILD),tmnanosem2)
MACHINE=dags7362
MACHINEBUILD=tmnanosem2
else ifeq ($(MACHINEBUILD),tmnanom3)
MACHINE=dags7362
MACHINEBUILD=tmnanom3
else ifeq ($(MACHINEBUILD),tmnanosem2plus)
MACHINE=dags7362
MACHINEBUILD=tmnanosem2plus
else ifeq ($(MACHINEBUILD),tmnanosecombo)
MACHINE=dags7362
MACHINEBUILD=tmnanosecombo
else ifeq ($(MACHINEBUILD),force1)
MACHINE=dags7356
MACHINEBUILD=force1
else ifeq ($(MACHINEBUILD),force1plus)
MACHINE=dags7356
MACHINEBUILD=force1plus
else ifeq ($(MACHINEBUILD),megaforce1plus)
MACHINE=dags7356
MACHINEBUILD=megaforce1plus
else ifeq ($(MACHINEBUILD),worldvisionf1)
MACHINE=dags7356
MACHINEBUILD=worldvisionf1
else ifeq ($(MACHINEBUILD),worldvisionf1plus)
MACHINE=dags7356
MACHINEBUILD=worldvisionf1plus
else ifeq ($(MACHINEBUILD),optimussos1plus)
MACHINE=dags7356
MACHINEBUILD=optimussos1plus
else ifeq ($(MACHINEBUILD),optimussos2plus)
MACHINE=dags7356
MACHINEBUILD=optimussos2plus
else ifeq ($(MACHINEBUILD),optimussos3plus)
MACHINE=dags7356
MACHINEBUILD=optimussos3plus
else ifeq ($(MACHINEBUILD),force2plus)
MACHINE=dags7362
MACHINEBUILD=force2plus
else ifeq ($(MACHINEBUILD),force2)
MACHINE=dags7362
MACHINEBUILD=force2
else ifeq ($(MACHINEBUILD),force2se)
MACHINE=dags7362
MACHINEBUILD=force2se
else ifeq ($(MACHINEBUILD),megaforce2)
MACHINE=dags7362
MACHINEBUILD=megaforce2
else ifeq ($(MACHINEBUILD),optimussos)
MACHINE=dags7362
MACHINEBUILD=optimussos
else ifeq ($(MACHINEBUILD),fusionhd)
MACHINE=dags7362
MACHINEBUILD=fusionhd
else ifeq ($(MACHINEBUILD),fusionhdse)
MACHINE=dags7362
MACHINEBUILD=fusionhdse
else ifeq ($(MACHINEBUILD),purehd)
MACHINE=dags7362
MACHINEBUILD=purehd
else ifeq ($(MACHINEBUILD),force2nano)
MACHINE=dags7362
MACHINEBUILD=force2nano
else ifeq ($(MACHINEBUILD),force2plushv)
MACHINE=dags73625
MACHINEBUILD=force2plushv
else ifeq ($(MACHINEBUILD),force3uhdplus)
MACHINE=dags7252
MACHINEBUILD=force3uhdplus
else ifeq ($(MACHINEBUILD),force3uhd)
MACHINE=dags7252
MACHINEBUILD=force3uhd
else ifeq ($(MACHINEBUILD),revo4k)
MACHINE=dags7252
MACHINEBUILD=revo4k
else ifeq ($(MACHINEBUILD),tmtwin4k)
MACHINE=dags7252
MACHINEBUILD=tmtwin4k
else ifeq ($(MACHINEBUILD),classm)
MACHINE=odinm7
MACHINEBUILD=classm
else ifeq ($(MACHINEBUILD),axodin)
MACHINE=odinm7
MACHINEBUILD=axodin
else ifeq ($(MACHINEBUILD),axodinc)
MACHINE=odinm7
MACHINEBUILD=axodinc
else ifeq ($(MACHINEBUILD),starsatlx)
MACHINE=odinm7
MACHINEBUILD=starsatlx
else ifeq ($(MACHINEBUILD),genius)
MACHINE=odinm7
MACHINEBUILD=genius
else ifeq ($(MACHINEBUILD),evo)
MACHINE=odinm7
MACHINEBUILD=evo
else ifeq ($(MACHINEBUILD),galaxym6)
MACHINE=odinm7
MACHINEBUILD=galaxym6
else ifeq ($(MACHINEBUILD),maram9)
MACHINE=odinm9
MACHINEBUILD=maram9
else ifeq ($(MACHINEBUILD),geniuse3hd)
MACHINE=e3hd
MACHINEBUILD=geniuse3hd
else ifeq ($(MACHINEBUILD),evoe3hd)
MACHINE=e3hd
MACHINEBUILD=evoe3hd
else ifeq ($(MACHINEBUILD),axase3)
MACHINE=e3hd
MACHINEBUILD=axase3
else ifeq ($(MACHINEBUILD),axase3c)
MACHINE=e3hd
MACHINEBUILD=axase3c
else ifeq ($(MACHINEBUILD),ventonhdx)
MACHINE=inihdx
MACHINEBUILD=ventonhdx
else ifeq ($(MACHINEBUILD),sezam5000hd)
MACHINE=inihdx
MACHINEBUILD=sezam5000hd
else ifeq ($(MACHINEBUILD),mbtwin)
MACHINE=inihdx
MACHINEBUILD=mbtwin
else ifeq ($(MACHINEBUILD),beyonwizt3)
MACHINE=inihdx
MACHINEBUILD=beyonwizt3
else ifeq ($(MACHINEBUILD),sezam1000hd)
MACHINE=inihde
MACHINEBUILD=sezam1000hd
else ifeq ($(MACHINEBUILD),xpeedlx)
MACHINE=inihde
MACHINEBUILD=xpeedlx
else ifeq ($(MACHINEBUILD),mbmini)
MACHINE=inihde
MACHINEBUILD=mbmini
else ifeq ($(MACHINEBUILD),atemio5x00)
MACHINE=inihde
MACHINEBUILD=atemio5x00
else ifeq ($(MACHINEBUILD),bwidowx)
MACHINE=inihde
MACHINEBUILD=bwidowx
else ifeq ($(MACHINEBUILD),atemio6000)
MACHINE=inihde2
MACHINEBUILD=atemio6000
else ifeq ($(MACHINEBUILD),atemio6100)
MACHINE=inihde2
MACHINEBUILD=atemio6100
else ifeq ($(MACHINEBUILD),atemio6200)
MACHINE=inihde2
MACHINEBUILD=atemio6200
else ifeq ($(MACHINEBUILD),mbminiplus)
MACHINE=inihde2
MACHINEBUILD=mbminiplus
else ifeq ($(MACHINEBUILD),mbhybrid)
MACHINE=inihde2
MACHINEBUILD=mbhybrid
else ifeq ($(MACHINEBUILD),bwidowx2)
MACHINE=inihde2
MACHINEBUILD=bwidowx2
else ifeq ($(MACHINEBUILD),beyonwizt2)
MACHINE=inihde2
MACHINEBUILD=beyonwizt2
else ifeq ($(MACHINEBUILD),opticumtt)
MACHINE=inihde2
MACHINEBUILD=opticumtt
else ifeq ($(MACHINEBUILD),xpeedlxpro)
MACHINE=inihde2
MACHINEBUILD=xpeedlxpro
else ifeq ($(MACHINEBUILD),sezammarvel)
MACHINE=inihdp
MACHINEBUILD=sezammarvel
else ifeq ($(MACHINEBUILD),xpeedlx3)
MACHINE=inihdp
MACHINEBUILD=xpeedlx3
else ifeq ($(MACHINEBUILD),atemionemesis)
MACHINE=inihdp
MACHINEBUILD=atemionemesis
else ifeq ($(MACHINEBUILD),mbultra)
MACHINE=inihdp
MACHINEBUILD=mbultra
else ifeq ($(MACHINEBUILD),beyonwizt4)
MACHINE=inihdp
MACHINEBUILD=beyonwizt4
else ifeq ($(MACHINEBUILD),mixosf5)
MACHINE=ebox5000
MACHINEBUILD=mixosf5
else ifeq ($(MACHINEBUILD),gi9196m)
MACHINE=ebox5000
MACHINEBUILD=gi9196m
else ifeq ($(MACHINEBUILD),mixosf5mini)
MACHINE=ebox5100
MACHINEBUILD=mixosf5mini
else ifeq ($(MACHINEBUILD),gi9196lite)
MACHINE=ebox5100
MACHINEBUILD=gi9196lite
else ifeq ($(MACHINEBUILD),mixosf7)
MACHINE=ebox7358
MACHINEBUILD=mixosf7
else ifeq ($(MACHINEBUILD),mixoslumi)
MACHINE=eboxlumi
MACHINEBUILD=mixoslumi
else ifeq ($(MACHINEBUILD),dcube)
MACHINE=cube
MACHINEBUILD=dcube
else ifeq ($(MACHINEBUILD),mkcube)
MACHINE=cube
MACHINEBUILD=mkcube
else ifeq ($(MACHINEBUILD),ultima)
MACHINE=cube
MACHINEBUILD=ultima
else ifeq ($(MACHINEBUILD),xp1000mk)
MACHINE=xp1000
MACHINEBUILD=xp1000mk
else ifeq ($(MACHINEBUILD),xp1000max)
MACHINE=xp1000
MACHINEBUILD=xp1000max
else ifeq ($(MACHINEBUILD),sf8)
MACHINE=xp1000
MACHINEBUILD=sf8
else ifeq ($(MACHINEBUILD),xp1000plus)
MACHINE=xp1000
MACHINEBUILD=xp1000plus
else ifeq ($(MACHINEBUILD),sogno8800hd)
MACHINE=blackbox7405
MACHINEBUILD=sogno8800hd
else ifeq ($(MACHINEBUILD),uniboxhde)
MACHINE=blackbox7405
MACHINEBUILD=uniboxhde
else ifeq ($(MACHINEBUILD),enfinity)
MACHINE=ew7358
MACHINEBUILD=enfinity
else ifeq ($(MACHINEBUILD),marvel1)
MACHINE=ew7358
MACHINEBUILD=marvel1
else ifeq ($(MACHINEBUILD),x2plus)
MACHINE=ew7356
MACHINEBUILD=x2plus
else ifeq ($(MACHINEBUILD),bre2ze)
MACHINE=ew7362
MACHINEBUILD=bre2ze
else ifeq ($(MACHINEBUILD),evomini)
MACHINE=ch62lc
MACHINEBUILD=evomini
else ifeq ($(MACHINEBUILD),evominiplus)
MACHINE=ch625lc
MACHINEBUILD=evominiplus
else ifeq ($(MACHINEBUILD),mutant2400)
MACHINE=hd2400
MACHINEBUILD=mutant2400
else ifeq ($(MACHINEBUILD),quadbox2400)
MACHINE=hd2400
MACHINEBUILD=quadbox2400
else ifeq ($(MACHINEBUILD),mutant11)
MACHINE=hd11
MACHINEBUILD=mutant11
else ifeq ($(MACHINEBUILD),mutant1100)
MACHINE=hd1100
MACHINEBUILD=mutant1100
else ifeq ($(MACHINEBUILD),mutant1265)
MACHINE=hd1265
MACHINEBUILD=mutant1265
else ifeq ($(MACHINEBUILD),mutant1500)
MACHINE=hd1500
MACHINEBUILD=mutant1500
else ifeq ($(MACHINEBUILD),vizyonvita)
MACHINE=hd1100
MACHINEBUILD=vizyonvita
else ifeq ($(MACHINEBUILD),mutant1200)
MACHINE=hd1200
MACHINEBUILD=mutant1200
else ifeq ($(MACHINEBUILD),mutant500c)
MACHINE=hd500c
MACHINEBUILD=mutant500c
else ifeq ($(MACHINEBUILD),mutant530c)
MACHINE=hd530c
MACHINEBUILD=mutant530c
else ifeq ($(MACHINEBUILD),mutant51)
MACHINE=hd51
MACHINEBUILD=mutant51
else ifeq ($(MACHINEBUILD),ax51)
MACHINE=hd51
MACHINEBUILD=ax51
else ifeq ($(MACHINEBUILD),bre2ze4k)
MACHINE=hd51
MACHINEBUILD=bre2ze4k
else ifeq ($(MACHINEBUILD),vimastec1500)
MACHINE=vs1500
MACHINEBUILD=vimastec1500
else ifeq ($(MACHINEBUILD),vimastec1000)
MACHINE=vs1000
MACHINEBUILD=vimastec1000
else ifeq ($(MACHINEBUILD),amiko8900)
MACHINE=spark
MACHINEBUILD=amiko8900
else ifeq ($(MACHINEBUILD),amikomini)
MACHINE=spark
MACHINEBUILD=amikomini
else ifeq ($(MACHINEBUILD),sognorevolution)
MACHINE=spark
MACHINEBUILD=sognorevolution
else ifeq ($(MACHINEBUILD),arguspingulux)
MACHINE=spark
MACHINEBUILD=arguspingulux
else ifeq ($(MACHINEBUILD),arguspinguluxmini)
MACHINE=spark
MACHINEBUILD=arguspinguluxmini
else ifeq ($(MACHINEBUILD),arguspinguluxplus)
MACHINE=spark
MACHINEBUILD=arguspinguluxplus
else ifeq ($(MACHINEBUILD),sparkreloaded)
MACHINE=spark
MACHINEBUILD=sparkreloaded
else ifeq ($(MACHINEBUILD),fulanspark1)
MACHINE=spark
MACHINEBUILD=fulanspark1
else ifeq ($(MACHINEBUILD),sabsolo)
MACHINE=spark
MACHINEBUILD=sabsolo
else ifeq ($(MACHINEBUILD),sparklx)
MACHINE=spark
MACHINEBUILD=sparklx
else ifeq ($(MACHINEBUILD),gis8120)
MACHINE=spark
MACHINEBUILD=gis8120
else ifeq ($(MACHINEBUILD),dynaspark)
MACHINE=spark
MACHINEBUILD=dynaspark
else ifeq ($(MACHINEBUILD),dynasparkplus)
MACHINE=spark
MACHINEBUILD=dynasparkplus
else ifeq ($(MACHINEBUILD),amikoalien)
MACHINE=spark7162
MACHINEBUILD=amikoalien
else ifeq ($(MACHINEBUILD),sognotriple)
MACHINE=spark7162
MACHINEBUILD=sognotriple
else ifeq ($(MACHINEBUILD),sparktriplex)
MACHINE=spark7162
MACHINEBUILD=sparktriplex
else ifeq ($(MACHINEBUILD),sabtriple)
MACHINE=spark7162
MACHINEBUILD=sabtriple
else ifeq ($(MACHINEBUILD),giavatar)
MACHINE=spark7162
MACHINEBUILD=giavatar
else ifeq ($(MACHINEBUILD),sparkone)
MACHINE=spark7162
MACHINEBUILD=sparkone
else ifeq ($(MACHINEBUILD),dynaspark7162)
MACHINE=spark7162
MACHINEBUILD=dynaspark7162
else ifeq ($(MACHINEBUILD),sf98)
MACHINE=yh7362
MACHINEBUILD=sf98
else ifeq ($(MACHINEBUILD),evoslim)
MACHINE=yh7362
MACHINEBUILD=evoslim
else ifeq ($(MACHINEBUILD),t2cable)
MACHINE=jj7362
MACHINEBUILD=t2cable
else ifeq ($(MACHINEBUILD),enibox)
MACHINE=vg5000
MACHINEBUILD=enibox
else ifeq ($(MACHINEBUILD),mago)
MACHINE=vg5000
MACHINEBUILD=mago
else ifeq ($(MACHINEBUILD),x1plus)
MACHINE=vg5000
MACHINEBUILD=x1plus
else ifeq ($(MACHINEBUILD),sf108)
MACHINE=vg5000
MACHINEBUILD=sf108
else ifeq ($(MACHINEBUILD),tyrant)
MACHINE=vg1000
MACHINEBUILD=tyrant
else ifeq ($(MACHINEBUILD),xcombo)
MACHINE=vg2000
MACHINEBUILD=xcombo
else ifeq ($(MACHINEBUILD),zgemmash1)
MACHINE=sh1
MACHINEBUILD=zgemmash1
else ifeq ($(MACHINEBUILD),zgemmash2)
MACHINE=sh1
MACHINEBUILD=zgemmash2
else ifeq ($(MACHINEBUILD),zgemmas2s)
MACHINE=sh1
MACHINEBUILD=zgemmas2s
else ifeq ($(MACHINEBUILD),zgemmass)
MACHINE=sh1
MACHINEBUILD=zgemmass
else ifeq ($(MACHINEBUILD),zgemmahs)
MACHINE=h3
MACHINEBUILD=zgemmahs
else ifeq ($(MACHINEBUILD),zgemmah2s)
MACHINE=h3
MACHINEBUILD=zgemmah2s
else ifeq ($(MACHINEBUILD),zgemmah2h)
MACHINE=h3
MACHINEBUILD=zgemmah2h
else ifeq ($(MACHINEBUILD),zgemmaslc)
MACHINE=lc
MACHINEBUILD=zgemmaslc
else ifeq ($(MACHINEBUILD),zgemmah5)
MACHINE=h5
MACHINEBUILD=zgemmah5
else ifeq ($(MACHINEBUILD),zgemmah52s)
MACHINE=h5
MACHINEBUILD=zgemmah52s
else ifeq ($(MACHINEBUILD),zgemmah52tc)
MACHINE=h5
MACHINEBUILD=zgemmah52tc
else ifeq ($(MACHINEBUILD),zgemmai55)
MACHINE=i55
MACHINEBUILD=zgemmai55
else ifeq ($(MACHINEBUILD),novaip)
MACHINE=i55
MACHINEBUILD=novaip
else ifeq ($(MACHINEBUILD),novacombo)
MACHINE=h3
MACHINEBUILD=novacombo
else ifeq ($(MACHINEBUILD),novatwin)
MACHINE=h3
MACHINEBUILD=novatwin
else ifeq ($(MACHINEBUILD),zgemmah3ac)
MACHINE=h3
MACHINEBUILD=zgemmah3ac
else ifeq ($(MACHINEBUILD),zgemmah5ac)
MACHINE=h5
MACHINEBUILD=zgemmah5ac
else ifeq ($(MACHINEBUILD),mbmicro)
MACHINE=7000s
MACHINEBUILD=mbmicro
else ifeq ($(MACHINEBUILD),mbmicrov2)
MACHINE=7005s
MACHINEBUILD=mbmicrov2
else ifeq ($(MACHINEBUILD),e4hd)
MACHINE=7000s
MACHINEBUILD=e4hd
else ifeq ($(MACHINEBUILD),e4hdhybrid)
MACHINE=7000s
MACHINEBUILD=e4hdhybrid
else ifeq ($(MACHINEBUILD),twinboxlcd)
MACHINE=7100s
MACHINEBUILD=twinboxlcd
else ifeq ($(MACHINEBUILD),singleboxlcd)
MACHINE=7100s
MACHINEBUILD=singleboxlcd
else ifeq ($(MACHINEBUILD),sf208)
MACHINE=7210s
MACHINEBUILD=sf208
else ifeq ($(MACHINEBUILD),sf228)
MACHINE=7210s
MACHINEBUILD=sf228
else ifeq ($(MACHINEBUILD),9910lx)
MACHINE=7220s
MACHINEBUILD=9910lx
else ifeq ($(MACHINEBUILD),odin2hybrid)
MACHINE=7300s
MACHINEBUILD=odin2hybrid
else ifeq ($(MACHINEBUILD),odinplus)
MACHINE=7400s
MACHINEBUILD=odinplus
else ifeq ($(MACHINEBUILD),9911lx)
MACHINE=7225s
MACHINEBUILD=9911lx
else ifeq ($(MACHINEBUILD),e4hdcombo)
MACHINE=7225s
MACHINEBUILD=e4hdcombo
else ifeq ($(MACHINEBUILD),sf238)
MACHINE=7215s
MACHINEBUILD=sf238
else ifeq ($(MACHINEBUILD),twinboxlcdci5)
MACHINE=7105s
MACHINEBUILD=twinboxlcdci5
else ifeq ($(MACHINEBUILD),mbtwinplus)
MACHINE=g300
MACHINEBUILD=mbtwinplus
else ifeq ($(MACHINEBUILD),sf3038)
MACHINE=g300
MACHINEBUILD=sf3038
else ifeq ($(MACHINEBUILD),sf128)
MACHINE=g100
MACHINEBUILD=sf128
else ifeq ($(MACHINEBUILD),sf138)
MACHINE=g100
MACHINEBUILD=sf138
else ifeq ($(MACHINEBUILD),bre2zet2c)
MACHINE=g101
MACHINEBUILD=bre2zet2c
else ifeq ($(MACHINEBUILD),spycat)
MACHINE=xc7362
MACHINEBUILD=spycat
else ifeq ($(MACHINEBUILD),spycatmini)
MACHINE=xc7362
MACHINEBUILD=spycatmini
else ifeq ($(MACHINEBUILD),spycatminiplus)
MACHINE=xc7362
MACHINEBUILD=spycatminiplus
else ifeq ($(MACHINEBUILD),spycat4kmini)
MACHINE=xc7439
MACHINEBUILD=spycat4kmini
else ifeq ($(MACHINEBUILD),osmini)
MACHINE=xc7362
MACHINEBUILD=osmini
else ifeq ($(MACHINEBUILD),osminiplus)
MACHINE=xc7362
MACHINEBUILD=osminiplus
else ifeq ($(MACHINEBUILD),bcm7358)
MACHINE=xc7358
MACHINEBUILD=bcm7358
else ifeq ($(MACHINEBUILD),vp7358ci)
MACHINE=xc7358ci
MACHINEBUILD=vp7358ci
else ifeq ($(MACHINEBUILD),osmega)
MACHINE=xc7346
MACHINEBUILD=osmega
else ifeq ($(MACHINEBUILD),gb800se)
MACHINE=gb7325
MACHINEBUILD=gb800se
else ifeq ($(MACHINEBUILD),gb800ue)
MACHINE=gb7325
MACHINEBUILD=gb800ue
else ifeq ($(MACHINEBUILD),gb800seplus)
MACHINE=gb7358
MACHINEBUILD=gb800seplus
else ifeq ($(MACHINEBUILD),gb800ueplus)
MACHINE=gb7358
MACHINEBUILD=gb800ueplus
else ifeq ($(MACHINEBUILD),gbipbox)
MACHINE=gb7358
MACHINEBUILD=gbipbox
else ifeq ($(MACHINEBUILD),gbultrase)
MACHINE=gb7362
MACHINEBUILD=gbultrase
else ifeq ($(MACHINEBUILD),gbultraue)
MACHINE=gb7362
MACHINEBUILD=gbultraue
else ifeq ($(MACHINEBUILD),gbultraueh)
MACHINE=gb73625
MACHINEBUILD=gbultraueh
else ifeq ($(MACHINEBUILD),gbx1)
MACHINE=gb7362
MACHINEBUILD=gbx1
else ifeq ($(MACHINEBUILD),gbx2)
MACHINE=gb73625
MACHINEBUILD=gbx2
else ifeq ($(MACHINEBUILD),gbx3)
MACHINE=gb7362
MACHINEBUILD=gbx3
else ifeq ($(MACHINEBUILD),gbx3h)
MACHINE=gb73625
MACHINEBUILD=gbx3h
else ifeq ($(MACHINEBUILD),gbquad)
MACHINE=gb7356
MACHINEBUILD=gbquad
else ifeq ($(MACHINEBUILD),gbquadplus)
MACHINE=gb7356
MACHINEBUILD=gbquadplus
else ifeq ($(MACHINEBUILD),gbuhdquad)
MACHINE=gb7252
MACHINEBUILD=gbuhdquad
else ifeq ($(MACHINEBUILD),xpeedlxcs2)
MACHINE=ultramini
MACHINEBUILD=xpeedlxcs2
else ifeq ($(MACHINEBUILD),xpeedlxcc)
MACHINE=ultramini
MACHINEBUILD=xpeedlxcc
else ifeq ($(MACHINEBUILD),et7x00mini)
MACHINE=ultramini
MACHINEBUILD=et7x00mini
endif
initialize: init
init: setupmbuild $(BBLAYERS) $(CONFFILES)
image: init
@. $(TOPDIR)/env.source && cd $(TOPDIR) && bitbake $(DISTRO)-image
update:
@echo 'Updating Git repositories...'
@HASH=`$(XSUM) $(MAKEFILE_LIST)`; \
if [ -n "$(GIT_REMOTE)" ]; then \
$(GIT) pull --ff-only || $(GIT) pull --rebase; \
fi; \
if [ "$$HASH" != "`$(XSUM) $(MAKEFILE_LIST)`" ]; then \
echo 'Makefile changed. Restarting...'; \
$(MAKE) $(MFLAGS) --no-print-directory $(MAKECMDGOALS); \
else \
$(GIT) submodule sync && \
$(GIT) submodule update --init && \
cd meta-oe-alliance && \
if [ -n "$(GIT_REMOTE)" ]; then \
$(GIT) submodule sync && \
$(GIT) submodule update --init; \
fi; \
echo "The oe-alliance is now up-to-date." ; \
cd .. ; \
fi
.PHONY: all image init initialize update usage machinebuild
BITBAKE_ENV_HASH := $(call hash, \
'BITBAKE_ENV_VERSION = "0"' \
'CURDIR = "$(CURDIR)"' \
'MACHINEBUILD2 = "${MACHINEBUILD}"' \
)
$(TOPDIR)/env.source: $(DEPDIR)/.env.source.$(BITBAKE_ENV_HASH)
@echo 'Generating $@'
@echo 'export BB_ENV_EXTRAWHITE="MACHINE DISTRO MACHINEBUILD BB_SRCREV_POLICY BB_NO_NETWORK"' > $@
@echo 'export MACHINE=$(MACHINE)' >> $@
@echo 'export DISTRO=$(DISTRO)' >> $@
@echo 'export MACHINEBUILD=$(MACHINEBUILD)' >> $@
@echo 'export PATH=$(CURDIR)/openembedded-core/scripts:$(CURDIR)/bitbake/bin:$${PATH}' >> $@
@echo 'if [[ $$BB_NO_NETWORK -eq 1 ]]; then' >> $@
@echo ' export BB_SRCREV_POLICY="cache"' >> $@
@echo ' echo -e "\e[95mforced offline mode\e[0m"' >> $@
@echo 'else' >> $@
@echo ' echo -n -e "check internet connection: \e[93mWaiting ...\e[0m"' >> $@
@echo ' wget -q --tries=10 --timeout=$(ONLINECHECK_TIMEOUT) --spider $(ONLINECHECK_URL)' >> $@
@echo ' if [[ $$? -eq 0 ]]; then' >> $@
@echo ' echo -e "\b\b\b\b\b\b\b\b\b\b\b\e[32mOnline \e[0m"' >> $@
@echo ' else' >> $@
@echo ' echo -e "\b\b\b\b\b\b\b\b\b\b\b\e[31mOffline \e[0m"' >> $@
@echo ' export BB_SRCREV_POLICY="cache"' >> $@
@echo ' fi' >> $@
@echo 'fi' >> $@
$(DISTRO)_CONF_HASH := $(call hash, \
'$(DISTRO)_CONF_VERSION = "1"' \
'CURDIR = "$(CURDIR)"' \
'BB_NUMBER_THREADS = "$(BB_NUMBER_THREADS)"' \
'PARALLEL_MAKE = "$(PARALLEL_MAKE)"' \
'DL_DIR = "$(DL_DIR)"' \
'SSTATE_DIR = "$(SSTATE_DIR)"' \
'TMPDIR = "$(TMPDIR)"' \
)
$(TOPDIR)/conf/$(DISTRO).conf: $(DEPDIR)/.$(DISTRO).conf.$($(DISTRO)_CONF_HASH)
@echo 'Generating $@'
@test -d $(@D) || mkdir -p $(@D)
@echo 'DISTRO_TYPE = "$(DISTRO_TYPE)"' >> $@
@echo 'SSTATE_DIR = "$(SSTATE_DIR)"' >> $@
@echo 'TMPDIR = "$(TMPDIR)"' >> $@
@echo 'BB_GENERATE_MIRROR_TARBALLS = "1"' >> $@
@echo 'BBINCLUDELOGS = "yes"' >> $@
@echo 'CONF_VERSION = "1"' >> $@
@echo 'EXTRA_IMAGE_FEATURES = "debug-tweaks"' >> $@
@echo 'USER_CLASSES = "buildstats"' >> $@
@echo '#PRSERV_HOST = "localhost:0"' >> $@
LOCAL_CONF_HASH := $(call hash, \
'LOCAL_CONF_VERSION = "0"' \
'CURDIR = "$(CURDIR)"' \
'TOPDIR = "$(TOPDIR)"' \
)
$(TOPDIR)/conf/local.conf: $(DEPDIR)/.local.conf.$(LOCAL_CONF_HASH)
@echo 'Generating $@'
@test -d $(@D) || mkdir -p $(@D)
@echo 'TOPDIR = "$(TOPDIR)"' > $@
@echo 'require $(TOPDIR)/conf/$(DISTRO).conf' >> $@
$(TOPDIR)/conf/site.conf: $(CURDIR)/site.conf
@ln -s ../../../../../site.conf $@
$(CURDIR)/site.conf:
@echo 'SCONF_VERSION = "1"' >> $@
@echo 'BB_NUMBER_THREADS = "$(BB_NUMBER_THREADS)"' >> $@
@echo 'PARALLEL_MAKE = "$(PARALLEL_MAKE)"' >> $@
@echo 'BUILD_OPTIMIZATION = "-march=native -O2 -pipe"' >> $@
@echo 'DL_DIR = "$(DL_DIR)"' >> $@
@echo 'INHERIT += "rm_work"' >> $@
BBLAYERS_CONF_HASH := $(call hash, \
'BBLAYERS_CONF_VERSION = "0"' \
'CURDIR = "$(CURDIR)"' \
'BBLAYERS = "$(BBLAYERS)"' \
)
$(TOPDIR)/conf/bblayers.conf: $(DEPDIR)/.bblayers.conf.$(BBLAYERS_CONF_HASH)
@echo 'Generating $@'
@test -d $(@D) || mkdir -p $(@D)
@echo 'LCONF_VERSION = "4"' >> $@
@echo 'BBFILES = ""' >> $@
@echo 'BBLAYERS = "$(BBLAYERS)"' >> $@
$(CONFDEPS):
@test -d $(@D) || mkdir -p $(@D)
@$(RM) $(basename $@).*
@touch $@