forked from subpatch/example-yocto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (43 loc) · 1.52 KB
/
Makefile
File metadata and controls
54 lines (43 loc) · 1.52 KB
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
# Internal Makefile for maintaining and testing the project.
SHELL=bash
DFETCH=dfetch
.PHONY: add
add:
mkdir -p sources
cd sources && $(DFETCH) add https://git.yoctoproject.org/poky -r refs/heads/scarthgap
cd sources && $(DFETCH) add https://git.openembedded.org/meta-openembedded -r refs/heads/scarthgap
cd sources && $(DFETCH) add https://git.yoctoproject.org/meta-raspberrypi -r refs/heads/scarthgap
git commit -m "add layers"
.PHONY: create
create:
. sources/poky/oe-init-build-env ; \
bitbake-layers create-layer ../sources/meta-mylayer && \
bitbake-layers add-layer ../sources/meta-mylayer && \
git add ../sources/meta-mylayer && \
git commit -m "add own layer"
.PHONY: save
save:
. sources/poky/oe-init-build-env ; \
bitbake-layers save-build-conf ../sources/meta-mylayer/ myconf && \
git add ../sources/meta-mylayer/conf/templates/myconf/ && \
git commit -m "add my template"
.PHONY: add-layers
add-layers:
. sources/poky/oe-init-build-env ; \
bitbake-layers add-layer ../sources/meta-openembedded/meta-oe && \
bitbake-layers add-layer ../sources/meta-openembedded/meta-python && \
bitbake-layers add-layer ../sources/meta-raspberrypi
.PHONY: build
build:
. sources/poky/oe-init-build-env ; \
bitbake my-image
.PHONY: update
update:
$(DFETCH) update sources/poky
$(DFETCH) update sources/meta-openembedded
$(DFETCH) update sources/meta-raspberrypi
.PHONY: upgrade
upgrade:
$(DFETCH) update -f sources/poky
$(DFETCH) update -f sources/meta-openembedded
$(DFETCH) update -f sources/meta-raspberrypi