Commit 09c90ade authored by root's avatar root
Browse files

Added missing files

parent 3e2f2006
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+4 −0
Original line number Diff line number Diff line
bin/*
install.log.*
pyra-rootfs.tgz
rootfs
+11 −2
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ out.cmd() { out.lvl CMD "$*";eval "$*" 2>&1|out.put; test ${PIPESTATUS[0]} -eq 0

log.stamp() { date '+%Y%m%d_%H%M%S'; }
log.separator() { local c=${1:-"="};awk -v "V=$c" 'BEGIN{while (c++<80) printf V;printf "\n"}';}
LOG_dir=${LOG_dir:-'/tmp'}
LOG_dir=${LOG_dir:-"$SCRIPT_path"}
LOG_file=${LOG_file:-"${SCRIPT_name}.log.$(log.stamp)"}
LOG_cmd=${LOG_cmd:-'printf "[$(log.stamp) - %-7s ] %s\n" "$lvl" "$text"'}
LOG_level=${LOG_level:-ALL}
@@ -340,6 +340,14 @@ apt_install() {
	return $RET
}

get.setup() {
	if [ ! -e $DEST/environment-setup ];then
		wget -O $DEST/environment-setup https://dev.pyra-handheld.com/sebt3/pyra-debian-cross/raw/master/environment-setup
	fi
	if [ ! -e $DEST/toolchain.cmake ];then
		wget -O $DEST/toolchain.cmake https://dev.pyra-handheld.com/sebt3/pyra-debian-cross/raw/master/toolchain.cmake
	fi
}
rootfs.get() {
	mkdir -p $DEST
	if [ -e $DEST/pyra-rootfs.tgz ];then
@@ -426,13 +434,14 @@ args.declare DEST -d --dest Y N N "Installation destination (Default: ${DEST})"
args.declare OPTS -o --option Y N N "Optionnal argument for the given task"
args.option.declare ACTION -a --action Y "Task to do"
args.option ACTION apt_install    "Install debian dependencies"
args.option ACTION get.setup	  "Get the environment-setup and related files"
args.option ACTION rootfs.get     "Download the pyra rootfs"
args.option ACTION rootfs.extract "Extract the downloaded file"
args.option ACTION rootfs.prepare "Setup the rootfs for chroot"
args.option ACTION rootfs.fix	  "Correct path in all .la and .pc files and broken symlinks"
args.option ACTION pyra.update	  "Update the pyra rootfs apt database"
args.option ACTION pyra.upgrade	  "Upgrade the pyra rootfs packages"
args.option ACTION pyra.install	  "Install base header files"
args.option ACTION rootfs.fix	  "Correct path in all .la and .pc files and broken symlinks"
args.option ACTION install 	  "Do all the previous steps"
args.option ACTION pyra.apt	  "run apt-get with your OPTS in the rootfs"
args.option ACTION pyra.build-dep "Get the build dependencies for OPTS"

toolchain.cmake

0 → 100644
+16 −0
Original line number Diff line number Diff line
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)

# specify the cross compiler
SET(CMAKE_C_COMPILER   arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)

# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH  /home/seb/projects/pyra/toolchain)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)