-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhw-ubi.pb
73 lines (68 loc) · 1.98 KB
/
hw-ubi.pb
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
---
- hosts: all
vars:
TYPE: hw-ubi
INSTANCE: "{{board}}"
arch: ARM
board: "kirkwood-iconnect"
board_dts: "{{board}}"
board_dts_src: "{{DIR}}/linux/arch/arm/boot/dts/{{board_dts}}"
board_uboot: "iconnect"
linux_dir: "{{SRCS_DIR}}/linux"
cc: "arm-linux-gnueabi-"
#cc_uboot: "arm-linux-gnueabi-"
GIT_ACCEPT: true
DIST: "{{VAR|default()}}/dist"
FILES:
- README.md
VAR_DIR: True
ETC_DIRS:
- uboot
- dts
- openocd
ETC_FILES:
- uboot.its
- ubi.cfg
- openocd/openocd-{{board}}.board.cfg
- openocd/openocd-{{board}}.cfg
- uboot/{{board_uboot}}.h
- dts/{{board_dts}}.dts
BINS:
- extract-image
- build-uboot
- build-dtb
#- build-itb # uboot recommended but i dig that funkiness, bootz
#- build-uimage # legacy uboot
- build-ubifs
- build-ubi
- split-ubi
- install-dtb
- start-openocd
- install-uboot
- src: ../build-deb-kernel.sh
dest: build-deb-kernel.sh
arch: arm
debarch: armel
after_kernel: 'cp arch/arm/boot/dts/kirkwood-iconnect.dtb debian/tmp/boot/vmlinuz* "${OUTPUT_DIR}/"'
REPOS:
uboot: git://git.denx.de/u-boot.git
DIRS:
- "{{DIST}}"
- "/var/tftpd"
LINKS:
"pdebuild-cross.tgz": "{{SRVS_DIR}}/pdebuildx-armel/pdebuild-cross.tgz"
"linux": "{{linux_dir}}"
"var/{{board_dts}}.dts": "{{board_dts_src}}.dts"
"etc/openocd/openocd.cfg": "etc/openocd/openocd-{{board}}.cfg"
"etc/openocd/openocd.board.cfg": "etc/openocd/openocd-{{board}}.board.cfg"
"/var/tftpd/{{NAME}}": "{{VAR}}"
#PKGS:
#- device-tree-compiler # junky junk junk, doesn't work with kernel dts
#- mtd-utils # ubi tools
#- tftpd-hpa
tasks:
- include: tasks/compfuzor.includes type=srv
# symlink extras
# TODO: u-boot defaults: at91-sama5d3_xplained.dtb zImage
#- include: tasks/find_latest.tasks find="{{VAR}}/vmlinuz-3.*"
#- file: src="{{latest}}" dest="{{VAR}}/vmlinuz-latest" state=link