Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
build-system
Commits
65d27c90
Commit
65d27c90
authored
Mar 19, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
494 additions
and
0 deletions
+494
-0
Makefile.common
Makefile.common
+89
-0
common.xml
common.xml
+0
-0
machines/E2-6110/definition.xml
machines/E2-6110/definition.xml
+25
-0
machines/I3-540/definition.xml
machines/I3-540/definition.xml
+25
-0
machines/I5-3317U/definition.xml
machines/I5-3317U/definition.xml
+25
-0
machines/I5-8500/definition.xml
machines/I5-8500/definition.xml
+25
-0
machines/I7-2600/definition.xml
machines/I7-2600/definition.xml
+25
-0
machines/ORANGE-PI-PC-PLUS/definition.xml
machines/ORANGE-PI-PC-PLUS/definition.xml
+25
-0
machines/ORANGE-PI-PLUS-2E/definition.xml
machines/ORANGE-PI-PLUS-2E/definition.xml
+25
-0
machines/QEMU-KVM64/definition.xml
machines/QEMU-KVM64/definition.xml
+25
-0
machines/RASPBERRY-PI-3-B/definition.xml
machines/RASPBERRY-PI-3-B/definition.xml
+25
-0
machines/XEON-5130/definition.xml
machines/XEON-5130/definition.xml
+25
-0
machines/XEON-E3-1271/definition.xml
machines/XEON-E3-1271/definition.xml
+25
-0
machines/XEON-E5620/definition.xml
machines/XEON-E5620/definition.xml
+25
-0
machines/XEON-X5650/definition.xml
machines/XEON-X5650/definition.xml
+25
-0
mender.xml
mender.xml
+80
-0
No files found.
Makefile.common
0 → 100644
View file @
65d27c90
current_dir
:=
$(
dir
$(
abspath
$(
lastword
$(MAKEFILE_LIST)
)))
PACKAGES
=
$(TEMPORARY_PACKAGES)
$(BASE_PACKAGES)
$(BOOT_PACKAGES)
.PHONY
:
packages set-version set-hostname $(PACKAGES) cleanup success
packages
:
set-version set-hostname $(PACKAGES) cleanup success
set-version
:
os-release
@
echo
"
$$
OS_RELEASE"
>
/etc/os-release
os-release
:
define
OS_RELEASE
# Begin /etc/os-release
NAME
=
"
$(PROJECT_NAME)
"
ID
=
"
$(ID)
"
PRETTY_NAME
=
"
$(PRETTY_NAME)
"
ANSI_COLOR
=
0
;
33
VERSION
=
$(VERSION)
VERSION_ID
=
$(BUILD_ID)
# End /etc/os-release
endef
export
OS_RELEASE
set-hostname
:
@
echo
"127.0.0.1 localhost
$(HOSTNAME)
"
>
/etc/hosts
hostname
$(HOSTNAME)
@
echo
"
$(HOSTNAME)
"
>
/etc/hostname
$(PACKAGES)
:
mkdir
root
mkdir
work
mkdir
mnt
mount
-t
overlay
-o
lowerdir
=
/,upperdir
=
root,workdir
=
work overlay mnt
mount
-t
devtmpfs /dev mnt/dev
mount
-t
devpts /dev/pts mnt/dev/pts
mount
-t
tmpfs /dev/shm mnt/dev/shm
mount
-t
proc /proc mnt/proc
mount
-t
sysfs /sysfs mnt/sys
mount
-t
tmpfs /tmp mnt/tmp
mount
-t
tmpfs /tmp mnt/var/tmp
mount /dev/
$(SECONDARY)
1 mnt/build
if
[
-d
mnt/data
]
;
then
\
mount /dev/
$(DISK)
4 mnt/data
;
\
fi
chroot
mnt
$(MAKE)
-C
$(current_dir)
$(
firstword
$(
subst
., ,
$@
))
$(
word
2,
$(
subst
., ,
$@
))
if
[
-d
mnt/data
]
&&
[[
$$
(
findmnt
-M
mnt/data
)
]]
;
then
\
umount
-l
mnt/data
;
\
fi
umount
-l
mnt/build
umount
-l
mnt/var/tmp
umount
-l
mnt/tmp
umount
-l
mnt/sys
umount
-l
mnt/proc
umount
-l
mnt/dev/shm
umount
-l
mnt/dev/pts
umount
-l
mnt/dev
umount
-l
mnt
rm
-rf
work
rm
-rf
mnt
mkdir
-p
/usr/share/packages
find root
-type
f
-exec
strip
--strip-unneeded
-K
grub_mod_init
-K
grub_mod_fini
'{}'
';'
2> /dev/null
find root
-type
c
-exec
bash
-c
"FILE=
\$
$
(ls -l '{}' | awk '/0, 0/ {print
\$
$NF
}'); if [ ! -z
\$
$FILE
]; then MAIN=
\$
$
(echo
\$
$FILE
| sed -e 's/root//'); rm -rf
\$
$MAIN
\$
$FILE
; fi"
';'
find root
-type
f
-exec
md5sum
'{}'
';'
|
sed
-e
's/ root/ /'
>>
/usr/share/packages/
$@
.md5
if
[
-s
/usr/share/packages/
$@
.md5
]
;
then
\
if
[
-f
/build/packages/
$(
firstword
$(
subst
., ,
$@
))
/
$@
.groups
]
;
then
\
cp
/build/packages/
$(
firstword
$(
subst
., ,
$@
))
/
$@
.groups /usr/share/packages
;
\
fi
;
\
for
f
in
`
find root
-type
l |
sed
-e
's/^root//'
`
;
do
rm
-rf
$$
f
;
done
;
\
cp
-rdfp
--remove-destination
root/
*
/
;
\
else
\
rm
-f
/usr/share/packages/
$@
.md5
;
\
fi
rm
-rf
root
cleanup
:
for
pkg
in
$(TEMPORARY_PACKAGES)
;
do
\
pkgremove
$$
pkg
;
\
done
rm
-rf
/kernelconfig
rm
-rf
/tmp/
*
/sbin/fstrim
-v
/
success
:
touch
/.success
common.xml
0 → 100644
View file @
65d27c90
This diff is collapsed.
Click to expand it.
machines/E2-6110/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"AMD E2 6110 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for AMD E2-6110"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-E2_6110-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=btver2 --with-tune=btver2"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"e2-6110"
/>
<property
name=
"DEVICE_TYPE"
value=
"E26110"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-e2-6110"
>
<antcall
target=
"run-system-opteron-g4"
/>
</target>
<target
name=
"run-system-with-secondary-e2-6110"
>
<antcall
target=
"run-system-with-secondary-opteron-g4"
/>
</target>
</project>
machines/I3-540/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel i3-540 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel i3-540"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-i3_540-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=nehalem --with-tune=nehalem"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"i3-540"
/>
<property
name=
"DEVICE_TYPE"
value=
"I3540"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-i3-540"
>
<antcall
target=
"run-system-nehalem"
/>
</target>
<target
name=
"run-system-with-secondary-i3-540"
>
<antcall
target=
"run-system-with-secondary-nehalem"
/>
</target>
</project>
machines/I5-3317U/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel i5-3317U machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel i5-3317U"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-i5_3317U-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=ivybridge --with-tune=ivybridge"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"i5-3317u"
/>
<property
name=
"DEVICE_TYPE"
value=
"I53317U"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-i5-3317u"
>
<antcall
target=
"run-system-ivybridge"
/>
</target>
<target
name=
"run-system-with-secondary-i5-3317u"
>
<antcall
target=
"run-system-with-secondary-ivybridge"
/>
</target>
</project>
machines/I5-8500/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel i5-8500 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel i5-8500"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-i5_8500-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=skylake --with-tune=skylake"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"i5-8500"
/>
<property
name=
"DEVICE_TYPE"
value=
"I58500"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-i5-8500"
>
<antcall
target=
"run-system-skylake-client"
/>
</target>
<target
name=
"run-system-with-secondary-i5-8500"
>
<antcall
target=
"run-system-with-secondary-skylake-client"
/>
</target>
</project>
machines/I7-2600/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel i7-2600 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel i7-2600"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-i7_2600-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=sandybridge --with-tune=sandybridge"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"i7-2600"
/>
<property
name=
"DEVICE_TYPE"
value=
"I72600"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-i7-2600"
>
<antcall
target=
"run-system-sandybridge"
/>
</target>
<target
name=
"run-system-with-secondary-i7-2600"
>
<antcall
target=
"run-system-with-secondary-sandybridge"
/>
</target>
</project>
machines/ORANGE-PI-PC-PLUS/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Orange Pi PC Plus machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Orange Pi PC Plus"
/>
<property
name=
"CLFS_TARGET"
value=
"armv7-allwinner-linux-gnueabihf"
/>
<property
name=
"ARCH"
value=
"arm"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=armv7ve --with-tune=cortex-a7 --with-float=hard --with-fpu=neon-vfpv4"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG} --with-tls=gnu2"
/>
<property
name=
"CONSOLE"
value=
"ttyAMA0"
/>
<property
name=
"DISK_LABEL"
value=
"mbr"
/>
<property
name=
"ROOT_DEVICE"
value=
"mmcblk0"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}p"
/>
<property
name=
"SECONDARY"
value=
"mmcblk1p"
/>
<property
name=
"BOARD"
value=
"orange-pi-pc-plus"
/>
<property
name=
"DEVICE_TYPE"
value=
"OrangePiPCPlusonSD"
/>
<property
name=
"GOARCH"
value=
"arm"
/>
<target
name=
"run-system-orange-pi-pc-plus"
>
<antcall
target=
"run-system-armv7"
/>
</target>
<target
name=
"run-system-with-secondary-orange-pi-pc-plus"
>
<antcall
target=
"run-system-with-secondary-armv7"
/>
</target>
</project>
machines/ORANGE-PI-PLUS-2E/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Orange Pi Plus 2E machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Orange Pi Plus 2E"
/>
<property
name=
"CLFS_TARGET"
value=
"armv7-allwinner-linux-gnueabihf"
/>
<property
name=
"ARCH"
value=
"arm"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=armv7ve --with-tune=cortex-a7 --with-float=hard --with-fpu=neon-vfpv4"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG} --with-tls=gnu2"
/>
<property
name=
"CONSOLE"
value=
"ttyAMA0"
/>
<property
name=
"DISK_LABEL"
value=
"mbr"
/>
<property
name=
"ROOT_DEVICE"
value=
"mmcblk0"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}p"
/>
<property
name=
"SECONDARY"
value=
"mmcblk1p"
/>
<property
name=
"BOARD"
value=
"orange-pi-plus-2e"
/>
<property
name=
"DEVICE_TYPE"
value=
"OrangePiPlus2EonSD"
/>
<property
name=
"GOARCH"
value=
"arm"
/>
<target
name=
"run-system-orange-pi-plus-2e"
>
<antcall
target=
"run-system-armv7"
/>
</target>
<target
name=
"run-system-with-secondary-orange-pi-plus-2e"
>
<antcall
target=
"run-system-with-secondary-armv7"
/>
</target>
</project>
machines/QEMU-KVM64/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"QEMU KVM64 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for QEMU KVM64"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-kvm64-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=x86-64 --with-cpu=generic"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"mbr"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"qemu-kvm64"
/>
<property
name=
"DEVICE_TYPE"
value=
"KVM64"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-qemu-kvm64"
>
<antcall
target=
"run-system-x86_64"
/>
</target>
<target
name=
"run-system-with-secondary-qemu-kvm64"
>
<antcall
target=
"run-system-with-secondary-x86_64"
/>
</target>
</project>
machines/RASPBERRY-PI-3-B/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Raspberry Pi 3 Model B machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Raspberry Pi 3 Model B"
/>
<property
name=
"CLFS_TARGET"
value=
"aarch64-broadcom-linux-gnueabi"
/>
<property
name=
"ARCH"
value=
"arm64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=armv8-a+crc+nocrypto --with-cpu=cortex-a53"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyAMA0"
/>
<property
name=
"DISK_LABEL"
value=
"mbr"
/>
<property
name=
"ROOT_DEVICE"
value=
"mmcblk0"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}p"
/>
<property
name=
"SECONDARY"
value=
"mmcblk1p"
/>
<property
name=
"BOARD"
value=
"raspberry-pi-3-b"
/>
<property
name=
"DEVICE_TYPE"
value=
"RaspberryPi3ModelB"
/>
<property
name=
"GOARCH"
value=
"arm64"
/>
<target
name=
"run-system-raspberry-pi-3-b"
>
<antcall
target=
"run-system-armv8"
/>
</target>
<target
name=
"run-system-with-secondary-raspberry-pi-3-b"
>
<antcall
target=
"run-system-with-secondary-armv8"
/>
</target>
</project>
machines/XEON-5130/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel Xeon 5130 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel Xeon 5130"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-XEON_5130-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=core2 --with-tune=core2"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"xeon-5130"
/>
<property
name=
"DEVICE_TYPE"
value=
"XEON5130"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-xeon-5130"
>
<antcall
target=
"run-system-core2"
/>
</target>
<target
name=
"run-system-with-secondary-xeon-5130"
>
<antcall
target=
"run-system-with-secondary-core2"
/>
</target>
</project>
machines/XEON-E3-1271/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel Xeon E3 1271 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel Xeon E3 1271"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-XEON_E3_1271-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=haswell --with-tune=haswell"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"xeon-e3-1271"
/>
<property
name=
"DEVICE_TYPE"
value=
"XEONE31271"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-xeon-e3-1271"
>
<antcall
target=
"run-system-haswell"
/>
</target>
<target
name=
"run-system-with-secondary-xeon-e3-1271"
>
<antcall
target=
"run-system-with-secondary-haswell"
/>
</target>
</project>
machines/XEON-E5620/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel Xeon E5620 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel Xeon E5620"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-XEON_E5620-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=westmere --with-tune=westmere"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"xeon-e5620"
/>
<property
name=
"DEVICE_TYPE"
value=
"XEONE5620"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-xeon-e5620"
>
<antcall
target=
"run-system-westmere"
/>
</target>
<target
name=
"run-system-with-secondary-xeon-e5620"
>
<antcall
target=
"run-system-with-secondary-westmere"
/>
</target>
</project>
machines/XEON-X5650/definition.xml
0 → 100644
View file @
65d27c90
<project
name=
"Intel Xeon X5650 machine definition"
>
<property
name=
"PRETTY_NAME"
value=
"${ant.project.name} for Intel Xeon X5650"
/>
<property
name=
"CLFS_TARGET"
value=
"x86_64-XEON_X5650-linux-gnu"
/>
<property
name=
"ARCH"
value=
"x86_64"
/>
<property
name=
"GCC_CROSS_CONFIG"
value=
"--with-arch=westmere --with-tune=westmere"
/>
<property
name=
"GCC_CONFIG"
value=
"${GCC_CROSS_CONFIG}"
/>
<property
name=
"CONSOLE"
value=
"ttyS0"
/>
<property
name=
"DISK_LABEL"
value=
"gpt"
/>
<property
name=
"ROOT_DEVICE"
value=
"sda"
/>
<property
name=
"DISK"
value=
"${ROOT_DEVICE}"
/>
<property
name=
"SECONDARY"
value=
"sdb"
/>
<property
name=
"BOARD"
value=
"xeon-x5650"
/>
<property
name=
"DEVICE_TYPE"
value=
"XEONX5650"
/>
<property
name=
"GOARCH"
value=
"amd64"
/>
<target
name=
"run-system-xeon-x5650"
>
<antcall
target=
"run-system-westmere"
/>
</target>
<target
name=
"run-system-with-secondary-xeon-x5650"
>
<antcall
target=
"run-system-with-secondary-westmere"
/>
</target>
</project>
mender.xml
0 → 100644
View file @
65d27c90
<project
name=
"Mender common elements"
xmlns:if=
"ant:if"
xmlns:unless=
"ant:unless"
>
<fail
message=
"Mender's private key and certificate are missing"
>
<condition>
<not>
<resourcecount
count=
"2"
>
<fileset
id=
"fs"
dir=
"host"
includes=
"private.key,server.crt"
/>
</resourcecount>
</not>
</condition>
</fail>
<property
name=
"MENDER_KEYS"
value=
"present"
/>
<target
name=
"post-mender-artifact"
>
<antcall
target=
"build-go"
/>
<antcall
target=
"build-mender-artifact"
/>
<antcall
target=
"upload-mender-artifact"
/>
</target>
<target
name=
"build-go"
>
<property
name=
"makedir"
value=
"${builddir}/go"
/>
<exec
executable=
"tar"
failonerror=
"true"
>
<arg
line=
"xf ${basedir}/packages/go/go1.4-bootstrap-20170531.tar.gz -C ${builddir}"
/>
</exec>
<exec
executable=
"./make.bash"
dir=
"${makedir}/src"
/>
<move
file=
"${builddir}/go"
tofile=
"${builddir}/go1.4"
/>
<exec
executable=
"tar"
failonerror=
"true"
>
<arg
line=
"xf ${basedir}/packages/go/go1.8.7.src.tar.gz -C ${builddir}"
/>
</exec>
<exec
executable=
"./make.bash"
dir=
"${makedir}/src"
>
<env
key=
"GOROOT_BOOTSTRAP"
path=
"${builddir}/go1.4"
/>
</exec>
<delete
dir=
"${builddir}/go1.4"
/>
</target>
<target
name=
"build-mender-artifact"
>
<mkdir
dir=
"${builddir}/go/src/github.com/mendersoftware"
/>
<exec
executable=
"tar"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"xf ${basedir}/packages/mender-artifact/mender-artifact-2.1.1.tar.gz -C ${builddir}/go/src/github.com/mendersoftware"
/>
</exec>
<exec
executable=
"mv"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"${builddir}/go/src/github.com/mendersoftware/mender-artifact-2.1.1 ${builddir}/go/src/github.com/mendersoftware/mender-artifact"
/>
</exec>
<exec
executable=
"${builddir}/go/bin/go"
dir=
"${builddir}/go/src/github.com/mendersoftware/mender-artifact"
failonerror=
"true"
>
<arg
line=
"build -ldflags "-X main.Version=2.1.1""
/>
</exec>
<exec
executable=
"mv"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"${builddir}/go/src/github.com/mendersoftware/mender-artifact/mender-artifact ${builddir}"
/>
</exec>
<delete
dir=
"${builddir}/go"
/>
<antcall
target=
"mount"
/>
<exec
executable=
"bash"
dir=
"${sysdir}"
failonerror=
"true"
>
<arg
line=
"-c "echo 'artifact_name=${ARTIFACT_NAME}-${BUILD_ID}' > ${sysdir}/etc/mender/artifact_info""
/>
</exec>
<copy
todir=
"${builddir}/artifactscripts"
>
<fileset
dir=
"${sysdir}/etc/mender/artifactscripts"
/>
</copy>
<antcall
target=
"unmount"
/>
<exec
executable=
"dd"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"if=${builddir}/disk.img of=${builddir}/${ARTIFACT_NAME}-${BUILD_ID}.ext4 bs=1048576 skip=${ABstart} count=${ABsize}"
/>
</exec>
<exec
executable=
"${builddir}/mender-artifact"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"write rootfs-image -t ${DEVICE_TYPE} -n ${ARTIFACT_NAME}-${BUILD_ID} -u ${ARTIFACT_NAME}-${BUILD_ID}.ext4 -o ${ARTIFACT_NAME}-${BUILD_ID}.mender -k ${basedir}/host/private.key -s artifactscripts"
/>
</exec>
<delete
file=
"${builddir}/mender-artifact"
/>
<delete
file=
"${builddir}/${ARTIFACT_NAME}-${BUILD_ID}.ext4"
/>
<delete
dir=
"${builddir}/artifactscripts"
/>
</target>
<target
name=
"upload-mender-artifact"
if=
"env.MENDER_USER"
>
<exec
executable=
"${basedir}/packages/mender-artifact/remove-mender-artifact.sh"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"${MENDER_HOST} ${env.MENDER_USER} ${env.MENDER_PASS} ${ARTIFACT_NAME} ${DEVICE_TYPE} ${basedir}/host/server.crt"
/>
</exec>
<exec
executable=
"${basedir}/packages/mender-artifact/upload-mender-artifact.sh"
dir=
"${builddir}"
failonerror=
"true"
>
<arg
line=
"${MENDER_HOST} ${env.MENDER_USER} ${env.MENDER_PASS} ${ARTIFACT_NAME}-${BUILD_ID}.mender ${basedir}/host/server.crt"
/>
</exec>
<delete
file=
"${builddir}/${ARTIFACT_NAME}-${BUILD_ID}.mender"
/>
</target>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment