Browse Source

Modify conf using relative path.

lihm 3 years ago
parent
commit
998331d9d9
3 changed files with 27 additions and 15 deletions
  1. 7 1
      .gitignore
  2. 10 7
      ice/conf/bblayers.conf
  3. 10 7
      qemuriscv64/conf/bblayers.conf

+ 7 - 1
.gitignore

@@ -1,3 +1,9 @@
+sstate-cache
+
 */downloads
 */conf/exttc_sanity_info
-sstate-cache
+*/bitbake-cookerdaemon.log
+*/bitbake.lock
+*/buildhistory/
+*/cache/
+*/tmp-glibc/

+ 10 - 7
ice/conf/bblayers.conf

@@ -5,12 +5,15 @@ LCONF_VERSION = "7"
 BBPATH = "${TOPDIR}"
 BBFILES ?= ""
 
+# YOCTOROOT ="${@os.path.abspath(os.path.join(os.path.join("${TOPDIR}", os.pardir), os.pardir))}"
+YOCTOROOT ="${@os.path.abspath("${TOPDIR}/../../")}"
+
 BBLAYERS ?= " \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/openembedded-core/meta \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-oe \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-python \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-multimedia \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-networking \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-external-toolchain \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-riscv \
+  ${YOCTOROOT}/openembedded-core/meta \
+  ${YOCTOROOT}/meta-openembedded/meta-oe \
+  ${YOCTOROOT}/meta-openembedded/meta-python \
+  ${YOCTOROOT}/meta-openembedded/meta-multimedia \
+  ${YOCTOROOT}/meta-openembedded/meta-networking \
+  ${YOCTOROOT}/meta-external-toolchain \
+  ${YOCTOROOT}/meta-riscv \
   "

+ 10 - 7
qemuriscv64/conf/bblayers.conf

@@ -5,12 +5,15 @@ LCONF_VERSION = "7"
 BBPATH = "${TOPDIR}"
 BBFILES ?= ""
 
+# YOCTOROOT ="${@os.path.abspath(os.path.join(os.path.join("${TOPDIR}", os.pardir), os.pardir))}"
+YOCTOROOT ="${@os.path.abspath("${TOPDIR}/../../")}"
+
 BBLAYERS ?= " \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/openembedded-core/meta \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-oe \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-python \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-multimedia \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-openembedded/meta-networking \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-external-toolchain \
-  /home/koumei.lhm/git_repo/yocto-work/riscv_yocto/meta-riscv \
+  ${YOCTOROOT}/openembedded-core/meta \
+  ${YOCTOROOT}/meta-openembedded/meta-oe \
+  ${YOCTOROOT}/meta-openembedded/meta-python \
+  ${YOCTOROOT}/meta-openembedded/meta-multimedia \
+  ${YOCTOROOT}/meta-openembedded/meta-networking \
+  ${YOCTOROOT}/meta-external-toolchain \
+  ${YOCTOROOT}/meta-riscv \
   "