Creating a yocto recipe using recipetool script

$ recipetool -d create -o dropbear_2015.68.bb https://dropbear.nl/mirror/dropbear-2015.68.tar.bz2
DEBUG: Found bitbake path: ~/Desktop/devlab/poky/bitbake
NOTE: Fetching https://dropbear.nl/mirror/dropbear-2015.68.tar.bz2…
DEBUG: unable to extract library name from ld-linux.so.3
NOTE: Recipe dropbear_2015.68.bb has been created; further editing may be required to make it fully functional.

—————————————————

Now, if we open a newly automatically created recipe, it will be something like below & you can then customise it as per your requirement,

$ vim dropbear_2015.68.bb

# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
#
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses – it is
# your responsibility to verify that the values are complete and correct.
#
# NOTE: multiple licenses have been detected; if that is correct you should separate
# these in the LICENSE value using & if the multiple licenses all apply, or | if there
# is a choice between the multiple licenses. If in doubt, check the accompanying
# documentation to determine which situation is applicable.
LICENSE = “Unknown”
LIC_FILES_CHKSUM = “file://LICENSE;md5=a5ec40cafba26fc4396d0b550f824e01 \
file://libtommath/LICENSE;md5=4f6fbdd737299a6d5dac1428f38422c8 \
file://debian/copyright.in;md5=ccd97ae8f30a4a79d6538bc6cc43030d \
file://libtomcrypt/LICENSE;md5=6c4fa89d7c9f2c00b6507ef96934ed6a”

SRC_URI = “https://dropbear.nl/mirror/dropbear-${PV}.tar.bz2”
SRC_URI[md5sum] = “7664ac10f7cc2301c530eb80c756fc5d”
SRC_URI[sha256sum] = “55ea7c1e904ffe4b1cdbe1addca8291a2533d7d285fd22ac33608e9502a62446”

# NOTE: the following library dependencies are unknown, ignoring: socket pam tommath tomcrypt tommath tomcrypt
#       (this is based on recipes that have previously been built and packaged)
DEPENDS = “zlib”
# NOTE: if this software is not capable of being built in a separate build directory
# from the source, you should replace autotools with autotools-brokensep in the
# inherit line
inherit autotools

# Specify any options you want to pass to the configure script using EXTRA_OECONF:
EXTRA_OECONF = “”

Android Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Core Kernel C Programs Development Environment Setup Documents / Books Errors & Failures File Systems Framebuffer / Display Driver git Go Language Programs Hardware Platforms Home JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver OS Concepts PHP Procfs Filesystem Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded
Tags:

Leave a Reply