Skip to contentSkip to conversation

Enaable to add binary in /usr/bin using .bb file

yocto NIKHIL PATIL 2 participants 4 messages Nov 19, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi ,
If anyone know , please help on these .

Quoted 51 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi ,

    I want to add binary in /usr/bin , for these i made own .bb file (

obexpushtest.bb), When i am compiling obexpushtest package
separately that time it is compiling fine , but when i am adding obexpushtest in local.conf as a IMAGE_INSTALL , i am getting error.

## Error :-

/data/nikhil/inti_dmsv/yocto_build/build/tmp/work/intel_corei7_64-poky-linux/core-image-intel/1.0-r0/oe-rootfs-repo Last metadata expiration check: 0:00:01 ago on Thu 19 Nov 2020 05:57:19 AM
UTC.
No match for argument: obexpushtest
Error: Unable to find a match

## obexpushtest.bb file :-

    # file recipes-kernel/linux-firmware/linux-firmware_%.bbappend
SUMMARY = "tset_mount example"
SECTION = "test_mount"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

S = "${WORKDIR}"

SRC_URI += "file://obexpushd"

INSANE_SKIP_${PN} = "ldflags"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

do_install_append () {
        install -d ${D}/${bindir}
        install -m 0644 ${WORKDIR}/obexpushd ${D}/${bindir}
        cp ${WORKDIR}/obexpushd ${D}/${bindir}
}

# NOTE: Use "=+" instead of "+=". Otherwise, the file is placed into the linux-firmware package.
PACKAGES =+ "${PN}-example"
FILES_${PN}-example = "/usr/bin/obexpushd"

#2 lore raw
Quoted 3 lines · NIKHIL PATIL

Hi ,
If anyone know , please help on these .

It looks like your original email was sent less than an hour ago, give people some time.

I also recommend looking at the docs yourself.

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group
#3 lore raw
In reply to NIKHIL PATIL
Quoted 3 lines · NIKHIL PATIL

Hi ,
If anyone know , please help on these .

It looks like your original email was sent less than an hour ago, give people some time.

I also recommend looking at the docs yourself.

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group
#4 lore raw
In reply to a message not in the archive

Hi ,
If anyone know , please help on these .

Quoted 51 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi ,

    I want to add binary in /usr/bin , for these i made own .bb file (

obexpushtest.bb), When i am compiling obexpushtest package
separately that time it is compiling fine , but when i am adding obexpushtest in local.conf as a IMAGE_INSTALL , i am getting error.

## Error :-

/data/nikhil/inti_dmsv/yocto_build/build/tmp/work/intel_corei7_64-poky-linux/core-image-intel/1.0-r0/oe-rootfs-repo Last metadata expiration check: 0:00:01 ago on Thu 19 Nov 2020 05:57:19 AM
UTC.
No match for argument: obexpushtest
Error: Unable to find a match

## obexpushtest.bb file :-

    # file recipes-kernel/linux-firmware/linux-firmware_%.bbappend
SUMMARY = "tset_mount example"
SECTION = "test_mount"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

S = "${WORKDIR}"

SRC_URI += "file://obexpushd"

INSANE_SKIP_${PN} = "ldflags"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

do_install_append () {
        install -d ${D}/${bindir}
        install -m 0644 ${WORKDIR}/obexpushd ${D}/${bindir}
        cp ${WORKDIR}/obexpushd ${D}/${bindir}
}

# NOTE: Use "=+" instead of "+=". Otherwise, the file is placed into the linux-firmware package.
PACKAGES =+ "${PN}-example"
FILES_${PN}-example = "/usr/bin/obexpushd"