SlideShare a Scribd company logo
Yocto – UDOO NEO
Embedded Linux
Yocto is ?
• Not an embedded linux distribution, creates the a custom one
• Widely adopted throughout the embedded / IoT industry
• An open source and supports many CPU Hardware Architecture
• Easy to migrate to another architecture
• Constantly validated by testing all the releases
• Designed for constraint embedded / IoT device needs
• Provides the comprehensive set of toolchain capabilities
• Allows to build / rebuild the individual packages separately
• Can be configured for any device based on its flash, ram size
Yocto Layer
OpenEmbedded Core Metadata ( oe-core )
Yocto Layer Meta-Data (meta-yocto)
Hardware Specific BSP Layer
UI (Optional Layer)
Commercial Layer
Development Specific Layer
Yocto Work Flow
Yocto Releases
Releases Code Name Poky Version
Yoco Project 2.5 Sumo 19.0
Yoco Project 2.4 Rocko 18.0
Yoco Project 2.3 Pyro 17.0
Yoco Project 2.2 Morty 16.0
Yoco Project 2.1 Krogoth 15.0
Yoco Project 2.0 Jethro 14.0
Yoco Project 1.8 Fido 13.0
Yoco Project 1.7 Dizzy 12.0
Yoco Project 1.6 Daisy 11.0
Yoco Project 1.5 Dora 10.0
Yoco Project 1.4 Dylan 9.0
Bitbake
• Package management tool used by Gentoo Linux System.
• Standalone, maintained and distribution independent tool
• make-like software building tool for embedded linux systems.
• Creates complete image consisting of root file system, linux kernel
and bootloader.
• Receipe
• Specify how a particular package built
• Consist of source URL (https, http, ftp, cvs, svn, git, local file system)
• Used to resolve the package dependencies
• Native or cross-compilation of software packages
• Does the installation of packages on appropriate file locations
Recipes – Basic Tasks
Tasks Function Description
FETCH do_fetch Locate and Download the source code
UNPACK do_unpack Unpack the source into working directory
PATCH do_patch Apply any patches
CONFIGURE do_configure Performs the pre-build configuration, if any
COMPILE do_compile Compile the source code
INSTALL do_install Install the resulting build into Working dir
POPULATE_SYSROOT do_populate_sysroot Copy artifacts into sysroot
PACKAGE do_package Create binary packages
Yocto Building for UDOO NEO
Source Downloading, Setup Environment and Image Generation
Repo
• Is a tool built on top of git
• Does not meant to replace git, it makes easier to work with git.
• Manages many git repositories
• Automates the process of downloading repositories.
• Uploads to revision control systems like git.
• Executable python script that can be used anywhere.
• Install Repo Utility
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo
$ chmod a+x repo
$ PATH=${PATH}:$(PWD)
Yocto on UDOO Neo Boards
• Clone the BSP Sources
$ mkdir udoo-neo-yocto
$ cd udoo-neo-yocto
$ repo init -u https://github.com/graugans/fsl-community-bsp-platform -b krogoth
$ repo sync
• Prepare the Build Environment
$ MACHINE=udooneo source ./setup-environment build
Yocto on UDOO Neo Boards
• Fix the Layer setup (conf/bblayer.conf)
${BSPDIR}/sources/poky/meta-yocto 

${BSPDIR}/sources/meta-openembedded/meta-oe 
+ ${BSPDIR}/sources/meta-openembedded/meta-python 
+ ${BSPDIR}/sources/meta-openembedded/meta-networking 
${BSPDIR}/sources/meta-openembedded/meta-multimedia 
${BSPDIR}/sources/meta-fsl-arm 
+ ${BSPDIR}/sources/meta-udoo 
• Build the command line image
$ MACHINE=udooneo bitbake udoo-image-full-cmdline
• Creating a SD Card Image
$ wic create udoo-sdcard -e udoo-image-full-cmdline -o /var/tmp/wic/udooneo
• Writing into Micro SD Card
$ sudo dd if=/tmp/wic/udooneo/build/udoo-sdcard-201804081228-mmcblk.direct of=/dev/sdX bs=1M
Yocto Receipe
Creating, Configuring, Building new receipe
Create New Layer
• Prepare the Build Environment
$ MACHINE=udooneo source ./setup-environment build
• Create Example layer
$ cd ../sources
$yocto-layer create mylayer
bblayer.conf
• build/conf/bblayer.conf
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
BBFILES ?= ""
BBLAYERS = " 
${BSPDIR}/sources/poky/meta 
${BSPDIR}/sources/poky/meta-poky 

${BSPDIR}/sources/meta-openembedded/meta-oe 
${BSPDIR}/sources/meta-openembedded/meta-python 
${BSPDIR}/sources/meta-openembedded/meta-networking 
${BSPDIR}/sources/meta-openembedded/meta-multimedia 

${BSPDIR}/sources/meta-fsl-arm 
${BSPDIR}/sources/meta-udoo 
${BSPDIR}/sources/meta-fsl-arm-extra 
${BSPDIR}/sources/meta-fsl-demos 
${BSPDIR}/sources/meta-mylayer 
"
layer.conf
• sources/meta-myrecipe/conf/layer.conf
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb 
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "myrecipe"
BBFILE_PATTERN_myrecipe = "^${LAYERDIR}/"
BBFILE_PRIORITY_myrecipe = "6"
myexample_0.1.bb
• sources/meta-myrecipe/recipes-example/example/myexample_0.1.bb
#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#
SUMMARY = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}"
do_compile() {
${CC} helloworld.c -o helloworld
}
do_install() {
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
}
Web : www.neeveetech.com
E-Mail : nvhariharan@neeveetech.com
Thank You. Subscribe for updates

More Related Content

What's hot (20)

PPTX
Linux Initialization Process (1)
shimosawa
 
PDF
Booting Android: bootloaders, fastboot and boot images
Chris Simmonds
 
PPT
Learning AOSP - Android Booting Process
Nanik Tolaram
 
PDF
Arm device tree and linux device drivers
Houcheng Lin
 
PDF
A practical guide to buildroot
Emertxe Information Technologies Pvt Ltd
 
PDF
Uboot startup sequence
Houcheng Lin
 
PPTX
Porting tock to open titan
RISC-V International
 
PDF
Linux device drivers
Emertxe Information Technologies Pvt Ltd
 
PDF
Linux Performance Analysis and Tools
Brendan Gregg
 
PDF
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SFO17-203
Linaro
 
PPT
Advanced c programming in Linux
Mohammad Golyani
 
PDF
Embedded Linux from Scratch to Yocto
Sherif Mousa
 
PPTX
U-boot and Android Verified Boot 2.0
GlobalLogic Ukraine
 
PDF
Diving Through The Layers: Investigating runc, containerd, and the Docker eng...
Phil Estes
 
PDF
Paul Angus - CloudStack Backup and Recovery Framework
ShapeBlue
 
ODP
4. linux file systems
Marian Marinov
 
PDF
Jagan Teki - U-boot from scratch
linuxlab_conf
 
PDF
Device Tree for Dummies (ELC 2014)
Thomas Petazzoni
 
PDF
U boot-boot-flow
BabuSubashChandar Chandra Mohan
 
ODP
Basics of boot-loader
iamumr
 
Linux Initialization Process (1)
shimosawa
 
Booting Android: bootloaders, fastboot and boot images
Chris Simmonds
 
Learning AOSP - Android Booting Process
Nanik Tolaram
 
Arm device tree and linux device drivers
Houcheng Lin
 
A practical guide to buildroot
Emertxe Information Technologies Pvt Ltd
 
Uboot startup sequence
Houcheng Lin
 
Porting tock to open titan
RISC-V International
 
Linux Performance Analysis and Tools
Brendan Gregg
 
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SFO17-203
Linaro
 
Advanced c programming in Linux
Mohammad Golyani
 
Embedded Linux from Scratch to Yocto
Sherif Mousa
 
U-boot and Android Verified Boot 2.0
GlobalLogic Ukraine
 
Diving Through The Layers: Investigating runc, containerd, and the Docker eng...
Phil Estes
 
Paul Angus - CloudStack Backup and Recovery Framework
ShapeBlue
 
4. linux file systems
Marian Marinov
 
Jagan Teki - U-boot from scratch
linuxlab_conf
 
Device Tree for Dummies (ELC 2014)
Thomas Petazzoni
 
Basics of boot-loader
iamumr
 

Similar to Building Embedded Linux UDOONEO (20)

PPTX
Yocto Project introduction
Yi-Hsiu Hsu
 
PDF
Yocto - Embedded Linux Distribution Maker
Sherif Mousa
 
PDF
An Introduction to the Yocto Embedded Framework 2018
ICS
 
PDF
Yocto Project : Custom Embedded Linux Distribution
emertxemarketing
 
PDF
Why you should use the Yocto Project
rossburton
 
PDF
yocto_scale_handout-with-notes
Steve Arnold
 
PDF
iot_9Yocto Project getting started,,.pdf
arabnuradin
 
PDF
Build your own embedded linux distributions by yocto project
Yen-Chin Lee
 
PDF
The Yocto Project
rossburton
 
PDF
[Webinar] An Introduction to the Yocto Embedded Framework
ICS
 
PDF
Why the yocto project for my io t project elc_edinburgh_2018
Mender.io
 
PPTX
Yocto_DevDay_Advanced_Class_Portland_2018.pptx
Rajeshravi49
 
PDF
Stefano Cordibella - An introduction to Yocto Project
linuxlab_conf
 
PDF
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
linuxlab_conf
 
PDF
Autobuilder2 Yocto Project Summit Lyon 2019
Marco Cavallini
 
PDF
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Marco Cavallini
 
PDF
Building Emmbedded Linux with Yocto project
twcoimbatore
 
PDF
Strategies for developing and deploying your embedded applications and images
Mender.io
 
PDF
Introduction to yocto
Alex Gonzalez
 
PPTX
Yocto project
University of Texas at Dallas
 
Yocto Project introduction
Yi-Hsiu Hsu
 
Yocto - Embedded Linux Distribution Maker
Sherif Mousa
 
An Introduction to the Yocto Embedded Framework 2018
ICS
 
Yocto Project : Custom Embedded Linux Distribution
emertxemarketing
 
Why you should use the Yocto Project
rossburton
 
yocto_scale_handout-with-notes
Steve Arnold
 
iot_9Yocto Project getting started,,.pdf
arabnuradin
 
Build your own embedded linux distributions by yocto project
Yen-Chin Lee
 
The Yocto Project
rossburton
 
[Webinar] An Introduction to the Yocto Embedded Framework
ICS
 
Why the yocto project for my io t project elc_edinburgh_2018
Mender.io
 
Yocto_DevDay_Advanced_Class_Portland_2018.pptx
Rajeshravi49
 
Stefano Cordibella - An introduction to Yocto Project
linuxlab_conf
 
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
linuxlab_conf
 
Autobuilder2 Yocto Project Summit Lyon 2019
Marco Cavallini
 
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Marco Cavallini
 
Building Emmbedded Linux with Yocto project
twcoimbatore
 
Strategies for developing and deploying your embedded applications and images
Mender.io
 
Introduction to yocto
Alex Gonzalez
 
Ad

More from NEEVEE Technologies (20)

PPTX
C Language Programming - Program Outline / Schedule
NEEVEE Technologies
 
PPTX
Python programming for Beginners - II
NEEVEE Technologies
 
PPTX
Python programming for Beginners - I
NEEVEE Technologies
 
PPTX
Engineering College - Internship proposal
NEEVEE Technologies
 
PPTX
NVDK-ESP32 WiFi Station / Access Point
NEEVEE Technologies
 
PPTX
NVDK-ESP32 Quick Start Guide
NEEVEE Technologies
 
PPTX
General Purpose Input Output - Brief Introduction
NEEVEE Technologies
 
PPTX
Yocto BSP Layer for UDOO NEO Board
NEEVEE Technologies
 
PPTX
Open Computer Vision Based Image Processing
NEEVEE Technologies
 
PPTX
Introduction to Machine learning
NEEVEE Technologies
 
PPTX
Introduction Linux Device Drivers
NEEVEE Technologies
 
PPTX
Introduction about Apache MYNEWT RTOS
NEEVEE Technologies
 
PPTX
Introduction to Bluetooth Low Energy
NEEVEE Technologies
 
PPTX
NXP i.MX6 Multi Media Processor & Peripherals
NEEVEE Technologies
 
PPTX
Introduction to Bluetooth low energy
NEEVEE Technologies
 
PPTX
Arduino Programming - Brief Introduction
NEEVEE Technologies
 
PPTX
MarsBoard - NXP IMX6 Processor
NEEVEE Technologies
 
PPTX
NXP IMX6 Processor - Embedded Linux
NEEVEE Technologies
 
PPTX
Introduction to Hardware Design Using KiCAD
NEEVEE Technologies
 
PPTX
Internet of things - zigbee network function
NEEVEE Technologies
 
C Language Programming - Program Outline / Schedule
NEEVEE Technologies
 
Python programming for Beginners - II
NEEVEE Technologies
 
Python programming for Beginners - I
NEEVEE Technologies
 
Engineering College - Internship proposal
NEEVEE Technologies
 
NVDK-ESP32 WiFi Station / Access Point
NEEVEE Technologies
 
NVDK-ESP32 Quick Start Guide
NEEVEE Technologies
 
General Purpose Input Output - Brief Introduction
NEEVEE Technologies
 
Yocto BSP Layer for UDOO NEO Board
NEEVEE Technologies
 
Open Computer Vision Based Image Processing
NEEVEE Technologies
 
Introduction to Machine learning
NEEVEE Technologies
 
Introduction Linux Device Drivers
NEEVEE Technologies
 
Introduction about Apache MYNEWT RTOS
NEEVEE Technologies
 
Introduction to Bluetooth Low Energy
NEEVEE Technologies
 
NXP i.MX6 Multi Media Processor & Peripherals
NEEVEE Technologies
 
Introduction to Bluetooth low energy
NEEVEE Technologies
 
Arduino Programming - Brief Introduction
NEEVEE Technologies
 
MarsBoard - NXP IMX6 Processor
NEEVEE Technologies
 
NXP IMX6 Processor - Embedded Linux
NEEVEE Technologies
 
Introduction to Hardware Design Using KiCAD
NEEVEE Technologies
 
Internet of things - zigbee network function
NEEVEE Technologies
 
Ad

Recently uploaded (20)

PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Executive Business Intelligence Dashboards
vandeslie24
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 

Building Embedded Linux UDOONEO

  • 1. Yocto – UDOO NEO Embedded Linux
  • 2. Yocto is ? • Not an embedded linux distribution, creates the a custom one • Widely adopted throughout the embedded / IoT industry • An open source and supports many CPU Hardware Architecture • Easy to migrate to another architecture • Constantly validated by testing all the releases • Designed for constraint embedded / IoT device needs • Provides the comprehensive set of toolchain capabilities • Allows to build / rebuild the individual packages separately • Can be configured for any device based on its flash, ram size
  • 3. Yocto Layer OpenEmbedded Core Metadata ( oe-core ) Yocto Layer Meta-Data (meta-yocto) Hardware Specific BSP Layer UI (Optional Layer) Commercial Layer Development Specific Layer
  • 5. Yocto Releases Releases Code Name Poky Version Yoco Project 2.5 Sumo 19.0 Yoco Project 2.4 Rocko 18.0 Yoco Project 2.3 Pyro 17.0 Yoco Project 2.2 Morty 16.0 Yoco Project 2.1 Krogoth 15.0 Yoco Project 2.0 Jethro 14.0 Yoco Project 1.8 Fido 13.0 Yoco Project 1.7 Dizzy 12.0 Yoco Project 1.6 Daisy 11.0 Yoco Project 1.5 Dora 10.0 Yoco Project 1.4 Dylan 9.0
  • 6. Bitbake • Package management tool used by Gentoo Linux System. • Standalone, maintained and distribution independent tool • make-like software building tool for embedded linux systems. • Creates complete image consisting of root file system, linux kernel and bootloader. • Receipe • Specify how a particular package built • Consist of source URL (https, http, ftp, cvs, svn, git, local file system) • Used to resolve the package dependencies • Native or cross-compilation of software packages • Does the installation of packages on appropriate file locations
  • 7. Recipes – Basic Tasks Tasks Function Description FETCH do_fetch Locate and Download the source code UNPACK do_unpack Unpack the source into working directory PATCH do_patch Apply any patches CONFIGURE do_configure Performs the pre-build configuration, if any COMPILE do_compile Compile the source code INSTALL do_install Install the resulting build into Working dir POPULATE_SYSROOT do_populate_sysroot Copy artifacts into sysroot PACKAGE do_package Create binary packages
  • 8. Yocto Building for UDOO NEO Source Downloading, Setup Environment and Image Generation
  • 9. Repo • Is a tool built on top of git • Does not meant to replace git, it makes easier to work with git. • Manages many git repositories • Automates the process of downloading repositories. • Uploads to revision control systems like git. • Executable python script that can be used anywhere. • Install Repo Utility $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo $ chmod a+x repo $ PATH=${PATH}:$(PWD)
  • 10. Yocto on UDOO Neo Boards • Clone the BSP Sources $ mkdir udoo-neo-yocto $ cd udoo-neo-yocto $ repo init -u https://github.com/graugans/fsl-community-bsp-platform -b krogoth $ repo sync • Prepare the Build Environment $ MACHINE=udooneo source ./setup-environment build
  • 11. Yocto on UDOO Neo Boards • Fix the Layer setup (conf/bblayer.conf) ${BSPDIR}/sources/poky/meta-yocto ${BSPDIR}/sources/meta-openembedded/meta-oe + ${BSPDIR}/sources/meta-openembedded/meta-python + ${BSPDIR}/sources/meta-openembedded/meta-networking ${BSPDIR}/sources/meta-openembedded/meta-multimedia ${BSPDIR}/sources/meta-fsl-arm + ${BSPDIR}/sources/meta-udoo • Build the command line image $ MACHINE=udooneo bitbake udoo-image-full-cmdline • Creating a SD Card Image $ wic create udoo-sdcard -e udoo-image-full-cmdline -o /var/tmp/wic/udooneo • Writing into Micro SD Card $ sudo dd if=/tmp/wic/udooneo/build/udoo-sdcard-201804081228-mmcblk.direct of=/dev/sdX bs=1M
  • 12. Yocto Receipe Creating, Configuring, Building new receipe
  • 13. Create New Layer • Prepare the Build Environment $ MACHINE=udooneo source ./setup-environment build • Create Example layer $ cd ../sources $yocto-layer create mylayer
  • 14. bblayer.conf • build/conf/bblayer.conf POKY_BBLAYERS_CONF_VERSION = "2" BBPATH = "${TOPDIR}" BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" BBFILES ?= "" BBLAYERS = " ${BSPDIR}/sources/poky/meta ${BSPDIR}/sources/poky/meta-poky ${BSPDIR}/sources/meta-openembedded/meta-oe ${BSPDIR}/sources/meta-openembedded/meta-python ${BSPDIR}/sources/meta-openembedded/meta-networking ${BSPDIR}/sources/meta-openembedded/meta-multimedia ${BSPDIR}/sources/meta-fsl-arm ${BSPDIR}/sources/meta-udoo ${BSPDIR}/sources/meta-fsl-arm-extra ${BSPDIR}/sources/meta-fsl-demos ${BSPDIR}/sources/meta-mylayer "
  • 15. layer.conf • sources/meta-myrecipe/conf/layer.conf # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "myrecipe" BBFILE_PATTERN_myrecipe = "^${LAYERDIR}/" BBFILE_PRIORITY_myrecipe = "6"
  • 16. myexample_0.1.bb • sources/meta-myrecipe/recipes-example/example/myexample_0.1.bb # # This file was derived from the 'Hello World!' example recipe in the # Yocto Project Development Manual. # SUMMARY = "Simple helloworld application" SECTION = "examples" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" SRC_URI = "file://helloworld.c" S = "${WORKDIR}" do_compile() { ${CC} helloworld.c -o helloworld } do_install() { install -d ${D}${bindir} install -m 0755 helloworld ${D}${bindir} }
  • 17. Web : www.neeveetech.com E-Mail : [email protected] Thank You. Subscribe for updates