Browse Source

change path in scripts

Émile Morel 10 years ago
parent
commit
fae96b94e9
3 changed files with 6 additions and 7 deletions
  1. 1 1
      README.md
  2. 3 4
      olinux/create_device.sh
  3. 2 2
      olinux/create_sunxi_boot_files.sh

+ 1 - 1
README.md

@@ -40,7 +40,7 @@ privileged mode. For more details see [docker issue](https://github.com/docker/d
 To build the minimal debian rootfs with the kernel previously build:
 
 ```shell
-sudo docker run --privileged -i -t -v $(pwd)/olinux/:/olinux/ debian:olinux bash ./olinux/create_arm_debootstrap.sh -i -c
+sudo docker run --privileged -i -t -v $(pwd)/olinux/:/olinux/ debian:olinux bash ./olinux/create_arm_debootstrap.sh -i olinux/sunxi -c
 ```
 
 Optional arguments:

+ 3 - 4
olinux/create_device.sh

@@ -21,11 +21,10 @@ EOF
 exit 1
 }
 
-TARGET=/olinux/olinux.img
+TARGET=./olinux/olinux.img
 MNT=/mnt
-IMAGE=olinux.img
-DEB_DIR=/olinux/deboostrap
-UBOOT_FILE=/olinux/sunxi/u-boot/u-boot-sunxi-with-spl.bin
+DEB_DIR=./olinux/debootstrap
+UBOOT_FILE=./olinux/sunxi/u-boot/u-boot-sunxi-with-spl.bin
 
 while getopts ":s:d:t:b:u:" opt; do
   case $opt in

+ 2 - 2
olinux/create_sunxi_boot_files.sh

@@ -30,7 +30,7 @@ exit 1
 THREADS=2
 MAINTAINER="Emile"
 MAINTAINERMAIL="emile@bleuchtang.fr"
-REP=$(dirname $0)
+REP=/olinux
 TARGET=/olinux/sunxi
 
 while getopts ":ob:t:l:c" opt; do
@@ -109,7 +109,7 @@ clone_or_pull linux.git http://git.kernel.org/pub/scm/linux/kernel/git/torvalds
 cd ${TARGET}/linux/
 # igorpecovnik patch for debian package
 patch -p1 < ${REP}/patch/packaging-next.patch
-cp /${REP}/config/linux-sunxi.config ${TARGET}/linux/.config
+cp ${REP}/config/linux-sunxi.config ${TARGET}/linux/.config
 if [ "$LOGO" ] ; then
   cp /${REP}/logo/${LOGO}.ppm ${TARGET}/linux/drivers/video/logo/logo_linux_clut224.ppm
 fi