-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.6 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.6 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
55
# Internal Makefile for maintaining and testing the project.
SHELL=bash
#SUBPATCH=$(HOME)/git/subpatch/subpatch.py
SUBPATCH=subpatch
.PHONY: add
add:
mkdir -p sources
cd sources && $(SUBPATCH) add https://git.yoctoproject.org/poky -r refs/heads/scarthgap
cd sources && $(SUBPATCH) add https://git.openembedded.org/meta-openembedded -r refs/heads/scarthgap
cd sources && $(SUBPATCH) 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:
$(SUBPATCH) update sources/poky
$(SUBPATCH) update sources/meta-openembedded
$(SUBPATCH) update sources/meta-raspberrypi
.PHONY: upgrade
upgrade:
$(SUBPATCH) update -r styhead sources/poky
$(SUBPATCH) update -r styhead sources/meta-openembedded
$(SUBPATCH) update -r styhead sources/meta-raspberrypi