-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhw-sama5d3.xplained.pb
100 lines (91 loc) · 3 KB
/
hw-sama5d3.xplained.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
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
---
- hosts: all
vars_files:
- ["private/$configset.vars", "private/{{TYPE}}.vars", "examples-private/{{TYPE}}.vars"]
vars:
TYPE: hw-sama5d3
INSTANCE: main
REPOS:
at91boot: git://github.com/linux4sam/at91bootstrap.git
uboot: git://git.denx.de/u-boot.git
GIT_ACCEPT: True
uboot_patch: "https://raw.github.com/eewiki/u-boot-patches/master/v2014.04/0001-sama5d3_xplained-uEnv.txt-bootz-n-fixes.patch"
VAR_FILES:
- uEnv.txt
- kernel-defconfig
- uEnv.txt
- setenv.txt
LINKS:
"{{VAR}}/pdebuild-cross.tgz": "/srv/pdebuildx-armhf/pdebuild-cross.tgz"
"{{REPO_DIR}}/linux": "/usr/src/linux"
PKGS:
- device-tree-compiler
revision: 1.0
localversion: ''
cc: "{{CROSS_COMPILE}}"
debarch: "{{KBUILD_DEBARCH}}"
ARCH: "arm"
BOARD: at91-sama5d3_xplained
CROSS_COMPILE: "arm-linux-gnueabihf-"
CONCURRENCY_LEVEL: '$(nproc)'
OUTPUT_DIR: "{{VAR}}"
LINUX_DIR: "{{REPO_DIR}}/linux"
LINUX_DEFCONFIG: "{{VAR}}/kernel-defconfig"
LINUX_PARAM_EXTRA: ""
KBUILD_DEBARCH: "armhf"
KDEB_PKGVERSION: "{{revision}}{{ '-' + localversion if localversion|default(False) else '' }}"
REPREPRO_DISTRO: main
IMAGE: "{{VAR}}/pdebuild-cross.tgz"
ENV_VARS:
- var
- bins_dir
- image
- arch
- cross_compile
- concurrency_level
- output_dir
- linux_dir
- linux_defconfig
- linux_param_extra
- linux_target
- linux_revision
- kbuild_debarch
- kdeb_pkgversion
- reprepro_distro
- uboot_dir
- at91boot_dir
#BINS_RUN_BYPASS: True # install but do not run
# using mainline uboot is good enough; not seeing any advantage to at91boot
BINS:
- prepare-sd.sh
- install-sd.sh
- part1-install-sd.sh
- part2-install-sd.sh
- collect-compiled.sh
- build-dtb.sh
- src: build-at91boot.sh
dest: build-at91boot-sd.sh
target: sama5d3_xplainedsd_uboot_defconfig
- src: build-at91boot.sh
dest: build-at91boot-nand.sh
target: sama5d3_xplainednf_uboot_defconfig
- src: ../build-uboot.sh
dest: build-uboot-sd.sh
target: sama5d3_xplained_mmc_config
flavor: -sd
- src: ../build-uboot.sh
dest: build-uboot-nand.sh
target: sama5d3_xplained_nandflash_config
flavor: -nand
- src: ../build-deb-kernel.sh
dest: build-deb-kernel.sh
#config_target: "sama5_defconfig"
after_kernel: 'cp arch/arm/boot/dts/at91-sama5d3_xplained.dtb debian/tmp/boot/vmlinuz* "$OUTPUT_DIR/"; (linux_dir=$(pwd); ln -sf $(basename $(ls $linux_dir/debian/tmp/boot/vmlinuz*)) vmlinuz-latest)'
tasks:
- include: tasks/compfuzor.includes type=srv
# symlink extras
# TODO: u-boot defaults: at91-sama5d3_xplained.dtb zImage
#- include: tasks/find_latest.tasks find="{{SRCS_DIR}}/linux-*xplain_armhf.deb"
#- file: src="{{latest}}" dest="{{VAR}}/{{latest|basename}}" state=link
#- include: tasks/find_latest.tasks find="{{VAR}}/vmlinuz-3.*"
#- file: src="{{latest}}" dest="{{VAR}}/vmlinuz-latest" state=link