All of lore.kernel.org
 help / color / mirror / Atom feed
* Add New recipe in custom layer.
@ 2019-12-13  4:59 ghalib exaleap
  2019-12-13 12:02 ` Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: ghalib exaleap @ 2019-12-13  4:59 UTC (permalink / raw)
  To: openembedded-core


[-- Attachment #1.1: Type: text/plain, Size: 2318 bytes --]

Hi,

   I Added a New Layer & Recipe in yocto project ( *Openembedded-core* ),
to add Layer & recipe i have gone through following step's

1. cloned yocto
2. source oe-init-build-env
3. bitbake-layers add-layer ../meta-<MY-LAYER>
4. bitbake core-image-minimal ---->  ( Here Meta layers Build's fine )
5. bitbake -c compile <MY-RECIPE>

In my custom Recipe <MY-RECIPE> added <MY-RECIPE>_0.1.bb has Written
following statements...
SRC_URI = "file://Makefile \
file://build_cross_native.sh \
           file://COPYING \

do_compile() {
${WORKDIR}/build_cross_native.sh
}

*Out-put:--*
* what where i mentioned in SRC_URI it's coping to build a directory of
yocto into its recipe folder, and script also running but *it stuck*, i
don't know whats worg, Can any you help me to overcome this?
* I have attached the log of this Recipes Build, if what any clarification
please go through that.

*console output: *
Loading cache: 100%
|########################################################################################################################################################################|
Time: 0:00:00
Loaded 1298 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "x86_64-oe-linux"
MACHINE              = "qemux86-64"
DISTRO               = "nodistro"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-myclang         = "master:cb5e746a2398d70b14a14ada7cef82bfd5e80d0e"

Initialising tasks: 100%
|###################################################################################################################################################################|
Time: 0:00:00
Sstate summary: Wanted 0 Found 0 Missed 0 Current 53 (0% match, 100%
complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
Currently  1 running tasks (429 of 429)  99%
|############################################################################################################################################################
|
0: khanclang-0.1-r0 do_compile - *15h19m31s *(pid 12476)

Thanks in advance
Ghalib khan c.

[-- Attachment #1.2: Type: text/html, Size: 3133 bytes --]

[-- Attachment #2: log.do_compile.12476 --]
[-- Type: application/octet-stream, Size: 14599 bytes --]

DEBUG: Executing python function autotools_aclocals
DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
DEBUG: Python function autotools_aclocals finished
DEBUG: Executing shell function do_compile
NOTE: *********************************************************************************************************
NOTE: #				# From khanclang.bb #							#
NOTE: *********************************************************************************************************
************************************************************************************************
#					# From build_cross_native.sh #					#
************************************************************************************************
/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build
Cloning into 'riscv-gnu-toolchain'...
Submodule 'qemu' (https://git.qemu.org/git/qemu.git) registered for path 'qemu'
Submodule 'riscv-binutils' (https://github.com/riscv/riscv-binutils-gdb.git) registered for path 'riscv-binutils'
Submodule 'riscv-dejagnu' (https://github.com/riscv/riscv-dejagnu.git) registered for path 'riscv-dejagnu'
Submodule 'riscv-gcc' (https://github.com/riscv/riscv-gcc.git) registered for path 'riscv-gcc'
Submodule 'riscv-gdb' (https://github.com/riscv/riscv-binutils-gdb.git) registered for path 'riscv-gdb'
Submodule 'riscv-glibc' (https://github.com/riscv/riscv-glibc.git) registered for path 'riscv-glibc'
Submodule 'riscv-newlib' (https://github.com/riscv/riscv-newlib.git) registered for path 'riscv-newlib'
Cloning into 'qemu'...
Submodule path 'qemu': checked out '57dfc2c4d51e770ed3f617e5d1456d1e2bacf3f0'
Submodule 'capstone' (https://git.qemu.org/git/capstone.git) registered for path 'capstone'
Submodule 'dtc' (https://git.qemu.org/git/dtc.git) registered for path 'dtc'
Submodule 'roms/QemuMacDrivers' (https://git.qemu.org/git/QemuMacDrivers.git) registered for path 'roms/QemuMacDrivers'
Submodule 'roms/SLOF' (https://git.qemu.org/git/SLOF.git) registered for path 'roms/SLOF'
Submodule 'roms/edk2' (https://git.qemu.org/git/edk2.git) registered for path 'roms/edk2'
Submodule 'roms/ipxe' (https://git.qemu.org/git/ipxe.git) registered for path 'roms/ipxe'
Submodule 'roms/openbios' (https://git.qemu.org/git/openbios.git) registered for path 'roms/openbios'
Submodule 'roms/openhackware' (https://git.qemu.org/git/openhackware.git) registered for path 'roms/openhackware'
Submodule 'roms/qemu-palcode' (https://git.qemu.org/git/qemu-palcode.git) registered for path 'roms/qemu-palcode'
Submodule 'roms/seabios' (https://git.qemu.org/git/seabios.git/) registered for path 'roms/seabios'
Submodule 'roms/seabios-hppa' (https://git.qemu.org/git/seabios-hppa.git) registered for path 'roms/seabios-hppa'
Submodule 'roms/sgabios' (https://git.qemu.org/git/sgabios.git) registered for path 'roms/sgabios'
Submodule 'roms/skiboot' (https://git.qemu.org/git/skiboot.git) registered for path 'roms/skiboot'
Submodule 'roms/u-boot' (https://git.qemu.org/git/u-boot.git) registered for path 'roms/u-boot'
Submodule 'roms/u-boot-sam460ex' (https://git.qemu.org/git/u-boot-sam460ex.git) registered for path 'roms/u-boot-sam460ex'
Submodule 'slirp' (https://git.qemu.org/git/libslirp.git) registered for path 'slirp'
Submodule 'tests/fp/berkeley-softfloat-3' (https://git.qemu.org/git/berkeley-softfloat-3.git) registered for path 'tests/fp/berkeley-softfloat-3'
Submodule 'tests/fp/berkeley-testfloat-3' (https://git.qemu.org/git/berkeley-testfloat-3.git) registered for path 'tests/fp/berkeley-testfloat-3'
Submodule 'ui/keycodemapdb' (https://git.qemu.org/git/keycodemapdb.git) registered for path 'ui/keycodemapdb'
Cloning into 'capstone'...
Submodule path 'qemu/capstone': checked out '22ead3e0bfdb87516656453336160e0a37b066bf'
Cloning into 'dtc'...
Submodule path 'qemu/dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Cloning into 'roms/QemuMacDrivers'...
Submodule path 'qemu/roms/QemuMacDrivers': checked out '90c488d5f4a407342247b9ea869df1c2d9c8e266'
Cloning into 'roms/SLOF'...
Submodule path 'qemu/roms/SLOF': checked out 'a5b428e1c1eae703bdd62a3f527223c291ee3fdc'
Cloning into 'roms/edk2'...
Submodule path 'qemu/roms/edk2': checked out '20d2e5a125e34fc8501026613a71549b2a1a3e54'
Submodule 'SoftFloat' (https://github.com/ucb-bar/berkeley-softfloat-3.git) registered for path 'ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3'
Submodule 'CryptoPkg/Library/OpensslLib/openssl' (https://github.com/openssl/openssl) registered for path 'CryptoPkg/Library/OpensslLib/openssl'
Cloning into 'ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3'...
Submodule path 'qemu/roms/edk2/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3': checked out 'b64af41c3276f97f0e181920400ee056b9c88037'
Cloning into 'CryptoPkg/Library/OpensslLib/openssl'...
Submodule path 'qemu/roms/edk2/CryptoPkg/Library/OpensslLib/openssl': checked out '50eaac9f3337667259de725451f201e784599687'
Submodule 'boringssl' (https://boringssl.googlesource.com/boringssl) registered for path 'boringssl'
Submodule 'krb5' (https://github.com/krb5/krb5) registered for path 'krb5'
Submodule 'pyca.cryptography' (https://github.com/pyca/cryptography.git) registered for path 'pyca-cryptography'
Cloning into 'boringssl'...
Submodule path 'qemu/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/boringssl': checked out '2070f8ad9151dc8f3a73bffaa146b5e6937a583f'
Cloning into 'krb5'...
Submodule path 'qemu/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/krb5': checked out 'b9ad6c49505c96a088326b62a52568e3484f2168'
Cloning into 'pyca-cryptography'...
Submodule path 'qemu/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/pyca-cryptography': checked out '09403100de2f6f1cdd0d484dcb8e620f1c335c8f'
Cloning into 'roms/ipxe'...
Submodule path 'qemu/roms/ipxe': checked out 'de4565cbe76ea9f7913a01f331be3ee901bb6e17'
Cloning into 'roms/openbios'...
Submodule path 'qemu/roms/openbios': checked out 'c79e0ecb84f4f1ee3f73f521622e264edd1bf174'
Cloning into 'roms/openhackware'...
Submodule path 'qemu/roms/openhackware': checked out 'c559da7c8eec5e45ef1f67978827af6f0b9546f5'
Cloning into 'roms/qemu-palcode'...
Submodule path 'qemu/roms/qemu-palcode': checked out 'bf0e13698872450164fa7040da36a95d2d4b326f'
Cloning into 'roms/seabios'...
Submodule path 'qemu/roms/seabios': checked out 'a5cab58e9a3fb6e168aba919c5669bea406573b4'
Cloning into 'roms/seabios-hppa'...
Submodule path 'qemu/roms/seabios-hppa': checked out '0f4fe84658165e96ce35870fd19fc634e182e77b'
Cloning into 'roms/sgabios'...
Submodule path 'qemu/roms/sgabios': checked out 'cbaee52287e5f32373181cff50a00b6c4ac9015a'
Cloning into 'roms/skiboot'...
Submodule path 'qemu/roms/skiboot': checked out '261ca8e779e5138869a45f174caa49be6a274501'
Cloning into 'roms/u-boot'...
Submodule path 'qemu/roms/u-boot': checked out 'd3689267f92c5956e09cc7d1baa4700141662bff'
Cloning into 'roms/u-boot-sam460ex'...
Submodule path 'qemu/roms/u-boot-sam460ex': checked out '60b3916f33e617a815973c5a6df77055b2e3a588'
Cloning into 'slirp'...
Submodule path 'qemu/slirp': checked out 'f0da6726207b740f6101028b2992f918477a4b08'
Cloning into 'tests/fp/berkeley-softfloat-3'...
Submodule path 'qemu/tests/fp/berkeley-softfloat-3': checked out 'b64af41c3276f97f0e181920400ee056b9c88037'
Cloning into 'tests/fp/berkeley-testfloat-3'...
Submodule path 'qemu/tests/fp/berkeley-testfloat-3': checked out '5a59dcec19327396a011a17fd924aed4fec416b3'
Cloning into 'ui/keycodemapdb'...
Submodule path 'qemu/ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
Cloning into 'riscv-binutils'...
Submodule path 'riscv-binutils': checked out 'd91cadb45f3ef9f96c6ebe8ffb20472824ed05a7'
Cloning into 'riscv-dejagnu'...
Submodule path 'riscv-dejagnu': checked out '4ea498a8e1fafeb568530d84db1880066478c86b'
Cloning into 'riscv-gcc'...
Submodule path 'riscv-gcc': checked out '54945eb8ad5a066da2d4e6a62ffeb513d341eb41'
Cloning into 'riscv-gdb'...
Submodule path 'riscv-gdb': checked out 'c3eb4078520dad8234ffd7fbf893ac0da23ad3c8'
Cloning into 'riscv-glibc'...
Submodule path 'riscv-glibc': checked out '06983fe52cfe8e4779035c27e8cc5d2caab31531'
Cloning into 'riscv-newlib'...
Submodule path 'riscv-newlib': checked out '0d24a86822a5ee73d6a6aa69e2a0118aa1e35204'
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/endian-little
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common-linux
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common-glibc
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/x86_64-linux
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common
checking for x86_64-oe-linux-gcc... x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/recipe-sysroot
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/recipe-sysroot accepts -g... yes
checking for x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/recipe-sysroot option to accept ISO C89... none needed
checking for grep that handles long lines and -e... /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/grep
checking for fgrep... /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/grep -F
checking for grep that handles long lines and -e... (cached) /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/grep
checking for bash... /bin/bash
checking for __gmpz_init in -lgmp... no
checking for mpfr_init in -lmpfr... no
checking for mpc_init2 in -lmpc... no
checking for curl... no
checking for wget... /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/wget
checking for ftp... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/wrapper/awk/awk
config.status: creating scripts/wrapper/sed/sed
/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/riscv/riscv-gnu-toolchain/riscv-glibc
mkdir -p /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install/.test || \
	(echo "Sorry, you don't have permission to write to" \
	 "'/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install', use --prefix to specify" \
	 "another path, or use 'sudo make' if you *REALLY* want to" \
	 "install into '/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install'" && exit 1)
rm -r /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install/.test
mkdir -p stamps/ && touch stamps/check-write-permission
rm -rf stamps/build-binutils-linux build-binutils-linux
mkdir build-binutils-linux
cd build-binutils-linux && CC_FOR_TARGET=riscv64-unknown-linux-gnu-gcc /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/riscv/riscv-gnu-toolchain/build/../riscv-binutils/configure \
	--target=riscv64-unknown-linux-gnu \
	 \
	--prefix=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install \
	--with-sysroot=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/build/../riscv/install/sysroot \
	--disable-multilib \
	 \
	--disable-werror \
	--disable-nls \
	--with-expat=yes  \
	--disable-gdb \
	--disable-sim \
	--disable-libdecnumber \
	--disable-readline
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/endian-little
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common-linux
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common-glibc
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/x86_64-linux
configure: loading site script /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/meta/site/common
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... riscv64-unknown-linux-gnu
checking for a BSD-compatible install... /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... (cached) sed
checking for gawk... /home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/hosttools/gawk
checking for gcc... x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/exaleapserver/khan_ws/khan/tools/yocto_ws/ws/riscv-yocto/openembedded-core/build/tmp-glibc/work/qemux86_64-oe-linux/khanclang/0.1-r0/recipe-sysroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add New recipe in custom layer.
  2019-12-13  4:59 Add New recipe in custom layer ghalib exaleap
@ 2019-12-13 12:02 ` Ross Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2019-12-13 12:02 UTC (permalink / raw)
  To: openembedded-core

On 13/12/2019 04:59, ghalib exaleap wrote:
> Hi,
> 
>     I Added a New Layer & Recipe in yocto project ( 
> *Openembedded-core* ), to add Layer & recipe i have gone through 
> following step's
> 
> 1. cloned yocto
> 2. source oe-init-build-env
> 3. bitbake-layers add-layer ../meta-<MY-LAYER>
> 4. bitbake core-image-minimal ---->  ( Here Meta layers Build's fine )
> 5. bitbake -c compile <MY-RECIPE>
> 
> In my custom Recipe <MY-RECIPE> added <MY-RECIPE>_0.1.bb <http://0.1.bb> 
> has Written following statements...
> SRC_URI = "file://Makefile \
> file://build_cross_native.sh \
>             file://COPYING \
> 
> do_compile() {
> ${WORKDIR}/build_cross_native.sh
> }
> 
> *Out-put:--*
> * what where i mentioned in SRC_URI it's coping to build a directory of 
> yocto into its recipe folder, and script also running but *it stuck*, i 
> don't know whats worg, Can any you help me to overcome this?
> * I have attached the log of this Recipes Build, if what any 
> clarification please go through that.

Without seeing what build_cross_native.sh does, no we can't help.

There's a log.do_compile in the recipe's work directory under tmp, which 
might shed some light.  It's probably waiting for you to enter something 
and didn't notice that there is no way to get input.

Ross


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-13 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13  4:59 Add New recipe in custom layer ghalib exaleap
2019-12-13 12:02 ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.