lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ devtool modify libgpg-error                                               
NOTE: Starting bitbake server...
INFO: Creating workspace layer in /home/lqg/al_yocto/riscv_yocto/thead-build/ice-base/workspace
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |#############################################################################################################################################################| Time: 0:00:00
Loaded 3515 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################################| Time: 0:00:00
Parsing of 2315 .bb files complete (2313 cached, 2 parsed). 3517 targets, 181 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.48.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "csky-oe-linux"
MACHINE              = "ice"
DISTRO               = "nodistro"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "csky32"
EXTERNAL_TOOLCHAIN   = "/home/lqg/.thead/csky-linux"
EXTERNAL_TARGET_SYS  = "csky-linux"
GCC_VERSION          = "6.3.0"
meta                 = "HEAD:0d9ec240e420b655c39612230854fd0a60912690"
meta-oe              
meta-python          
meta-multimedia      
meta-networking      = "HEAD:6af67ea926f7a418be97726eea9cf178c725b7a9"
meta-external-toolchain = "HEAD:933f57e865ca0ac56c69adbb984d5e68dc068683"
meta-arch            = "master:47fb319ed3e6fd9eda4f4825bd6fe4b4c9546ffe"
workspace            = "HEAD:76a551494f1674733fc682d0622ed3b5839d5f67"

Initialising tasks: 100% |########################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 0 Found 0 Missed 0 Current 10 (0% match, 100% complete)
NOTE: Executing Tasks
No currently running tasks (80 of 83)  95% |############################################################################################################################################        |
Currently  1 running tasks (82 of 83)  97% |################################################################################################################################################    |
0: libgpg-error-1.39-r0 do_unpack - 0s (pid 16395)
NOTE: Tasks Summary: Attempted 83 tasks of which 80 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
INFO: Source tree extracted to /home/lqg/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error
INFO: Recipe libgpg-error now set up to build from /home/lqg/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ ls
bitbake-cookerdaemon.log  buildhistory  cache  conf  README.md  tmp-glibc  workspace
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base$ cd /home/lqg/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ ls
ABOUT-NLS   autogen.rc  ChangeLog       configure     COPYING      INSTALL            libgpg-error.spec.in  Makefile.in    po      src     VERSION
aclocal.m4  autogen.sh  ChangeLog-2011  configure.ac  COPYING.LIB  lang               m4                    mkinstalldirs  potomo  tests
AUTHORS     build-aux   config.h.in     contrib       doc          libgpg-error.spec  Makefile.am           NEWS           README  THANKS
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ cd src/
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error/src$ ls
argparse.c         err-sources.h.in      gpg-error-config.in          gpgrt-config     Makefile.in      posix-lock.c      stringutils.c      visibility.c    w32-reg.c
b64dec.c           estream.c             gpg-error-config-test.sh     gpgrt-config.in  mkerrcodes1.awk  posix-lock-obj.h  strsource.c        visibility.h    w32-thread.c
b64enc.c           estream-printf.c      gpg-error-config-test.sh.in  gpgrt-int.h      mkerrcodes2.awk  posix-thread.c    strsource-sym.c    w32-add.h
code-from-errno.c  estream-printf.h      gpg-error.def.in             gpgrt.m4         mkerrcodes.awk   protos.h          syscall-clamp.c    w32ce-add.h
code-to-errno.c    gen-lock-obj.sh       gpg-error.h.in               init.c           mkerrcodes.c     README            syscfg             w32-estream.c
err-codes.h        gen-posix-lock-obj.c  gpg-error.m4                 init.h           mkerrnos.awk     spawn-posix.c     sysutils.c         w32-gettext.c
err-codes.h.in     gen-w32-lock-obj.c    gpg-error.pc.in              lock.h           mkheader.c       spawn-w32.c       thread.h           w32-iconv.c
errnos.in          gettext.h             gpg-error.vers               logging.c        mkstrtable.awk   strerror.c        version.c          w32-lock.c
err-sources.h      gpg-error.c           gpg-error.w32-manifest.in    Makefile.am      mkw32errmap.c    strerror-sym.c    versioninfo.rc.in  w32-lock-obj.h
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error/src$ cd syscfg/
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error/src/syscfg$ ls
lock-obj-pub.aarch64-apple-darwin.h             lock-obj-pub.i686-unknown-kfreebsd-gnu.h        lock-obj-pub.or1k-unknown-linux-gnu.h         lock-obj-pub.sparc64-unknown-linux-gnu.h
lock-obj-pub.aarch64-unknown-linux-gnu.h        lock-obj-pub.i686-unknown-linux-gnu.h           lock-obj-pub.powerpc64le-unknown-linux-gnu.h  lock-obj-pub.sparc-unknown-linux-gnu.h
lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h  lock-obj-pub.ia64-unknown-linux-gnu.h           lock-obj-pub.powerpc64-unknown-linux-gnu.h    lock-obj-pub.tilegx-unknown-linux-gnu.h
lock-obj-pub.alpha-unknown-linux-gnu.h          lock-obj-pub.m68k-unknown-linux-gnu.h           lock-obj-pub.powerpc-unknown-linux-gnu.h      lock-obj-pub.x86_64-apple-darwin.h
lock-obj-pub.arm-apple-darwin.h                 lock-obj-pub.mingw32.h                          lock-obj-pub.powerpc-unknown-linux-gnuspe.h   lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h
lock-obj-pub.arm-unknown-linux-androideabi.h    lock-obj-pub.mips64el-unknown-linux-gnuabi64.h  lock-obj-pub.riscv32-unknown-linux-gnu.h      lock-obj-pub.x86_64-unknown-linux-gnu.h
lock-obj-pub.arm-unknown-linux-gnueabi.h        lock-obj-pub.mips64-unknown-linux-gnuabi64.h    lock-obj-pub.riscv64-unknown-linux-gnu.h      lock-obj-pub.x86_64-unknown-linux-gnux32.h
lock-obj-pub.hppa-unknown-linux-gnu.h           lock-obj-pub.mipsel-unknown-linux-gnu.h         lock-obj-pub.s390x-unknown-linux-gnu.h        lock-obj-pub.x86_64-unknown-linux-musl.h
lock-obj-pub.i386-apple-darwin.h                lock-obj-pub.mips-unknown-linux-gnu.h           lock-obj-pub.sh3-unknown-linux-gnu.h
lock-obj-pub.i686-unknown-gnu.h                 lock-obj-pub.nios2-unknown-linux-gnu.h          lock-obj-pub.sh4-unknown-linux-gnu.h
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error/src/syscfg$ cp lock-obj-pub.riscv32-unknown-linux-gnu.h lock-obj-pub.csky-unknown-linux-gnu.h   
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error/src/syscfg$ cd ../../
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ ls
ABOUT-NLS   autogen.rc  ChangeLog       configure     COPYING      INSTALL            libgpg-error.spec.in  Makefile.in    po      src     VERSION
aclocal.m4  autogen.sh  ChangeLog-2011  configure.ac  COPYING.LIB  lang               m4                    mkinstalldirs  potomo  tests
AUTHORS     build-aux   config.h.in     contrib       doc          libgpg-error.spec  Makefile.am           NEWS           README  THANKS
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ git status .
On branch devtool
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h

nothing added to commit but untracked files present (use "git add" to track)
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ git add src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ git commit -m "append csky header file"
[devtool f743da5] append csky header file
 1 file changed, 23 insertions(+)
 create mode 100644 src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ devtool update-recipe -a ~/al_yocto/riscv_yocto/meta-csky/  libgpg-error
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |#############################################################################################################################################################| Time: 0:00:00
Loaded 3516 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################################| Time: 0:00:00
Parsing of 2315 .bb files complete (2313 cached, 2 parsed). 3517 targets, 181 skipped, 0 masked, 0 errors.
WARNING: Specified layer is not currently enabled in bblayers.conf, you will need to add it before this bbappend will be active
NOTE: Writing append file /home/lqg/al_yocto/riscv_yocto/meta-csky/recipes-support/libgpg-error/libgpg-error_1.39.bbappend
NOTE: Copying 0001-append-csky-header-file.patch to /home/lqg/al_yocto/riscv_yocto/meta-csky/recipes-support/libgpg-error/libgpg-error/0001-append-csky-header-file.patch
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ cat /home/lqg/al_yocto/riscv_yocto/meta-csky/recipes-support/libgpg-error/libgpg-error_1.39.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://0001-append-csky-header-file.patch"

lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ cat /home/lqg/al_yocto/riscv_yocto/meta-csky/recipes-support/libgpg-error/libgpg-error/0001-append-csky-header-file.patch
From f743da5f62f770d76ea14b8fc611290a3b067c1c Mon Sep 17 00:00:00 2001
From: tianshuliang <tian_shuliang@hoperun.com>
Date: Sat, 24 Apr 2021 21:20:53 +0800
Subject: [PATCH] append csky header file

---
 .../lock-obj-pub.csky-unknown-linux-gnu.h     | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h

diff --git a/src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h
new file mode 100644
index 0000000..b5bdaf5
--- /dev/null
+++ b/src/syscfg/lock-obj-pub.csky-unknown-linux-gnu.h
@@ -0,0 +1,23 @@
+## lock-obj-pub.riscv32-unknown-linux-gnu.h
+## File created by gen-posix-lock-obj - DO NOT EDIT
+## To be included by mkheader into gpg-error.h
+
+typedef struct
+{
+  long _vers;
+  union {
+    volatile char _priv[24];
+    long _x_align;
+    long *_xp_align;
+  } u;
+} gpgrt_lock_t;
+
+#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
+                                    0,0,0,0,0,0,0,0, \
+                                    0,0,0,0,0,0,0,0}}}
+##
+## Local Variables:
+## mode: c
+## buffer-read-only: t
+## End:
+##
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ 
lqg@etgserver:~/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error$ devtool reset libgpg-error
NOTE: Starting bitbake server...
INFO: Cleaning sysroot for recipe libgpg-error...
INFO: Leaving source tree /home/lqg/al_yocto/riscv_yocto/thead-build/ice-base/workspace/sources/libgpg-error as-is; if you no longer need it then please delete it manually
