diff options
-rw-r--r-- | README.md | 5 | ||||
-rwxr-xr-x | build-kernel | 8 | ||||
-rwxr-xr-x | deploy-kernel | 7 |
3 files changed, 17 insertions, 3 deletions
@@ -1,6 +1,10 @@ # setup symlinks $ ./install.sh +# Setup the artifact dir. if not creating an .ragnar.rc file +# the artifact dir will be in ${HOME}/ragnar-artifacts +$ echo 'TOP="${HOME}/src/kernel"' > ${HOME}/.ragnar.rc + # Supported HWs today: - hikey @@ -35,5 +39,4 @@ http://snapshots.linaro.org/openembedded/lkft/morty/ # Deploy with deploy-kernel example: -$ cd <path>/kernel $ deploy-kernel -i <ip> -m hikey diff --git a/build-kernel b/build-kernel index 52b4e9f..39676f8 100755 --- a/build-kernel +++ b/build-kernel @@ -2,8 +2,14 @@ set -e +if [[ -f ${HOME}/.ragnar.rc ]]; then + source ${HOME}/.ragnar.rc +else + TOP=${TOP:-"${HOME}/ragnar-artifacts"} +fi +mkdir -p ${TOP} + NUM_CPUS=${NUM_CPUS:-"$(getconf _NPROCESSORS_ONLN)"} -TOP=${TOP:-$(dirname $(pwd))} FIT_NAME="kernel kernel_dtb" KDIR=${KDIR:-$(pwd)} diff --git a/deploy-kernel b/deploy-kernel index 6fc1944..c63fd7c 100755 --- a/deploy-kernel +++ b/deploy-kernel @@ -4,7 +4,12 @@ set -e ROOTDIR=$(dirname $(readlink -f $(type -p $0))) -TOP=${TOP:-$(pwd)} +if [[ -f ${HOME}/.ragnar.rc ]]; then + source ${HOME}/.ragnar.rc +else + TOP=${TOP:-"${HOME}/ragnar-artifacts"} +fi + cd ${TOP} SSH_USER=root reboot=0 |