Ads 468x60px

##EasyReadMore##

21 11月, 2017

[Yocto] recipe refer

github 有人分享

DESCRIPTION = "Intel Edison Image Customized for FabMo"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
LICENSE = "MIT"

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_INSTALL += "openssh-sftp-server"

IMAGE_LINGUAS = " "

#INITRD = ""
#INITRD_IMAGE = ""

# Do not use legacy nor EFI BIOS
PCBIOS = "0"
# Do not support bootable USB stick
NOISO = "1"
ROOTFS = ""

# This is useless stuff, but necessary for building because
# inheriting bootimg also brings syslinux in..
AUTO_SYSLINUXCFG = "1"
SYSLINUX_ROOT = ""
SYSLINUX_TIMEOUT ?= "10"
SYSLINUX_LABELS ?= "boot install"
LABELS_append = " ${SYSLINUX_LABELS} "


# Specify rootfs image type
IMAGE_FSTYPES = "live ext3 ext4"

inherit core-image

# This has to be set after including core-image otherwise it's overriden with "1"
# and this cancel creation of the boot hddimg
NOHDD = "0"

inherit bootimg
do_bootimg[depends] += "${PN}:do_rootfs"

IMAGE_ROOTFS_SIZE = "524288"

IMAGE_FEATURES += "package-management dev-pkgs ssh-server-openssh"
IMAGE_FEATURES += "debug-tweaks"
IMAGE_FEATURES += "read-only-rootfs"

#IMAGE_INSTALL += "connman"
#IMAGE_INSTALL += "connman-client"
#IMAGE_INSTALL += "connman-tools"
#IMAGE_INSTALL += "connman-init-systemd"
IMAGE_INSTALL += "ap-mode-toggle"
IMAGE_INSTALL += "wireless-tools"
IMAGE_INSTALL += "wpa-supplicant"
IMAGE_INSTALL += "hostapd-daemon"
#IMAGE_INSTALL += "bluez5-dev"
#IMAGE_INSTALL += "bluez5-obex"
IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "iptables"
IMAGE_INSTALL += "libstdc++"
IMAGE_INSTALL += "u-boot"
IMAGE_INSTALL += "u-boot-fw-utils"
IMAGE_INSTALL += "file"
IMAGE_INSTALL += "pciutils"
IMAGE_INSTALL += "usbutils"
IMAGE_INSTALL += "ldd"
IMAGE_INSTALL += "i2c-tools"
#IMAGE_INSTALL += "watchdog-sample"
#IMAGE_INSTALL += "pwr-button-handler"
IMAGE_INSTALL += "blink-led"
#IMAGE_INSTALL += "post-install" # required by fabmo-post-install
IMAGE_INSTALL += "resize-rootfs"
IMAGE_INSTALL += "systemd-analyze"
IMAGE_INSTALL += "wget"
IMAGE_INSTALL += "aufs-util"
IMAGE_INSTALL += "setserial"

# Allows to enable OpenMP feature
#IMAGE_INSTALL += "libgomp"

# Add audio firmware
#IMAGE_INSTALL += "sst-fw-bin"

# ALSA lib and utilities
#IMAGE_INSTALL += "alsa-lib"
#IMAGE_INSTALL += "alsa-utils-alsamixer alsa-utils-alsactl alsa-utils-aplay alsa-utils-amixer"

# Python and some basic modules
IMAGE_INSTALL += "python"
IMAGE_INSTALL += "python-dbus python-smartpm python-pygobject python-argparse"
IMAGE_INSTALL += "python-distutils python-pkgutil python-audio python-image python-imaging python-email python-netserver python-xmlrpc python-ctypes python-html python-json python-compile python-misc python-numbers python-unittest python-pydoc"

# Wifi firmware
IMAGE_INSTALL += "bcm43340-fw"
# Bluetooth Firmware patch for 43340 and its patch utility
IMAGE_INSTALL += "bcm43340-bt"
# service daemon that listens to rfkill events and trigger FW patch download
IMAGE_INSTALL += "bluetooth-rfkill-event"
# Wifi driver built as a kernel module
IMAGE_INSTALL += "bcm43340-mod"

# Provides strace and gdb
IMAGE_FEATURES += "tools-debug"
IMAGE_INSTALL += "crashlog"

# Clean corrupted journald entries
IMAGE_INSTALL += "cleanjournal"

# Adds various other tools
IMAGE_INSTALL += "tcpdump"
IMAGE_INSTALL += "net-tools"
IMAGE_INSTALL += "lsof"
IMAGE_INSTALL += "iperf"

# Add pulseaudio
#IMAGE_INSTALL += "pulseaudio-server libpulsecore libpulsecommon libpulse libpulse-simple pulseaudio-misc pulseaudio-service"

#Add Gstreamer
IMAGE_INSTALL += "gstreamer1.0 gstreamer1.0-meta-base gstreamer1.0-meta-audio"
IMAGE_INSTALL += "gst-plugins-good gst-plugins-good-video4linux2 gst-plugins-good-meta "

# Those are necessary to manually create partitions and file systems on the eMMC
IMAGE_INSTALL += "parted"
IMAGE_INSTALL += "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-badblocks libcomerr libss libe2p libext2fs dosfstools"

# Time related
IMAGE_INSTALL += "tzdata"

# SWIG
IMAGE_INSTALL += "swig"


# Edison Arduino stuff
IMAGE_INSTALL += "clloader"


# Edison Middleware stuff
#IMAGE_INSTALL += "packagegroup-core-buildessential"
#IMAGE_INSTALL += "iotkit-opkg"
#IMAGE_INSTALL += "zeromq-dev"
#IMAGE_INSTALL += "cppzmq-dev"
#IMAGE_INSTALL += "paho-mqtt-dev"
#IMAGE_INSTALL += "mdns-dev"
#IMAGE_INSTALL += "iotkit-comm-js"
#IMAGE_INSTALL += "iotkit-comm-c-dev"
#IMAGE_INSTALL += "iotkit-agent"
#IMAGE_INSTALL += "iotkit-lib-c-dev"
#IMAGE_INSTALL += "xdk-daemon"
#IMAGE_INSTALL += "oobe"

# mosquitto and dependencies
#IMAGE_INSTALL += "mosquitto-dev"
#IMAGE_INSTALL += "mosquitto-clients"

# node and sub-components
#IMAGE_INSTALL += "nodejs-dev"
IMAGE_INSTALL += "nodejs-npm"

# MRAA
IMAGE_INSTALL += "mraa-dev"
IMAGE_INSTALL += "mraa-doc"

# UPM
#IMAGE_INSTALL += "upm-dev"

# INTEL MCU FW
IMAGE_INSTALL += "mcu-fw-load"
IMAGE_INSTALL += "mcu-fw-bin"

# nfs
#IMAGE_INSTALL += "nfs-utils"

# Add oFono
#IMAGE_INSTALL += "ofono"

# Add battery level detection
#IMAGE_INSTALL += "battery-voltage"


# Add dev tools
IMAGE_INSTALL += "autoconf automake binutils binutils-symlinks cpp cpp-symlinks gcc gcc-symlinks g++ g++-symlinks gettext make libstdc++ libstdc++-dev file coreutils"

IMAGE_INSTALL += "vim"
IMAGE_INSTALL += "nano"
IMAGE_INSTALL += "fabmo-engine"
IMAGE_INSTALL += "handibot"
IMAGE_INSTALL += "fabmo-post-install"

內部用:

DESCRIPTION = "A fully functional image to be placed on an SD card"

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"

IMAGE_LINGUAS = " "

LICENSE = "GPLv2"

IMAGE_FSTYPES = "ext3 live"

inherit core-image

#IMAGE_FSTYPES_remove = "cpio.lzma"
NOISO = "1"
NOHDD = "1"
# 1024 * 1024 * 3 = 3145728 (kb)
IMAGE_ROOTFS_SIZE = "3145728"
#IMAGE_ROOTFS_SIZE = "507200"

EXTRA_IMAGECMD_append_ext2 = " -N 2000"
IMAGE_FEATURES += "package-management"
IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "linuxptp"
IMAGE_INSTALL += "libstdc++"
IMAGE_INSTALL += "sysstat"
IMAGE_INSTALL += "dmidecode"

IMAGE_INSTALL += "python python-modules python-numpy"
#IMAGE_INSTALL += "alsa-lib alsa-utils"
IMAGE_INSTALL += "wireless-tools"
IMAGE_INSTALL += "wpa-supplicant"
IMAGE_INSTALL += "openssh"

IMAGE_INSTALL += "linux-firmware-iwlwifi-6000g2a-6"
IMAGE_INSTALL += "linux-firmware-iwlwifi-135-6"
IMAGE_INSTALL += "linux-firmware-iwlwifi-7260-7"
IMAGE_INSTALL += "linux-firmware-ti3410"
IMAGE_INSTALL += "bluez4 bluez-hcidump "
#IMAGE_INSTALL += "bluez5"
IMAGE_INSTALL += "connman connman-client connman-tests ofono-tests"
IMAGE_INSTALL += "ca-certificates"
#IMAGE_INSTALL += "lighttpd"

IMAGE_INSTALL += "packagegroup-core-eclipse-debug"

IMAGE_INSTALL += "e2fsprogs-mke2fs e2fsprogs-e2fsck"
IMAGE_INSTALL += "dosfstools util-linux-mkfs"

IMAGE_INSTALL += "timedate-scripts"

IMAGE_INSTALL += "rtlwifi"
IMAGE_INSTALL += "rtlbtusb"
IMAGE_INSTALL += "libical tcl glib-2.0 dbus json-c libaio"
IMAGE_INSTALL += "sqlite3 curl apr-util mosquitto"
IMAGE_INSTALL += "gptfdisk"
IMAGE_INSTALL += "python3 python3-modules"
IMAGE_INSTALL += "ecs-python3.5"
IMAGE_INSTALL += "libmpsse"
IMAGE_INSTALL += "binupdater"
IMAGE_INSTALL += "connmanconfig"
# these are the only lib32-* libs we want on our image
IMAGE_INSTALL += "lib32-uclibc lib32-uclibc-libm lib32-libstdc++ lib32-uclibc-libpthread"
# make sure no lib32-* libs get chosen by IMAGE_FEATURES
PACKAGE_EXCLUDE_COMPLEMENTARY = "lib32-.*"

ROOTFS_POSTPROCESS_COMMAND += "simlink_ld_uclibc"

simlink_ld_uclibc() {
  # This allows uclibc compiled binaries to find the uclibc loader note that
  # binaries will not run unless LD_LIBRARY_PATH is set correctly
  cd ${IMAGE_ROOTFS}/lib/; ln -s ../lib32/ld-uClibc.so.0
}

EXTRA_IMAGEDEPENDS = "grub-conf"

FabMo-Edison-Image/fabmo-image.bb at master · FabMo/FabMo-Edison-Image - https://goo.gl/uap8i9

0 意見:

張貼留言

 
Blogger Templates