Code Monkey home page Code Monkey logo

yocto-rpi-embebidos-2021's Introduction

Primer proyecto, Embebidos 2021 Ing. en Computadores

Comandos utiles

Inicializar ambiente

source oe-init-build-env rpi2

Construir imagen

bitbake rpi-basic-image

Inicializar toolchain

source /opt/poky/3.3.2/environment-setup-cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi

Compilación normal de la aplicación que usa la bilioteca:

$CC -L. -Wall -pthread -o gpto_test gpto_test.c -lpigpio -lgpio

Compilar .o biblioteca intermediaria DINÁMICA:

$CC -L. -Wall -pthread -fpic -c -o gpio.o gpio.c

Linkear biblioteca intermediaria DINÁMICA:

$CC -L. -shared -o libgpio.so gpio.o -lpigpio -lgpio

Compilar .o de biblioteca intermediaria ESTÁTICA (única diferencia: no ocupa el -fpic):

$CC -L. -Wall -pthread -c -o gpio.o gpio.c 

Compilar lpigpio (o algo ESTÁTICO):

$CC -O3 -Wall -pthread -fpic -c -o pigpio.o pigpio.c
$CC -O3 -Wall -pthread -fpic -c -o command.o command.c
$AR -L. rcs libpigpio.a pigpio.o command.o -lpigpio

BBlayers:

bitbake-layers create-layer meta-(nombre)
bitbake-layers add-layer ../(nombre)

yocto-rpi-embebidos-2021's People

Contributors

josephtico avatar danicast-c avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.