Commit Graph

59 Commits

Author SHA1 Message Date
Alex Gonzalez 788eb89aeb netbase: Parse .config file instead of /boot/config*
When building an RPM based system, the linux kernel image was installed
after the netbase image so the /boot/config* file was not found.

Strangely that worked fine on IPK based systems.

Fixes https://jira.digi.com/browse/DEL-364

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-23 18:24:52 +02:00
Alex Gonzalez c3c816ec52 Add support for variants
I have split the machine configuration in two:

-The module machine configuration include, for example ccimx53.inc
-The machine configuration (for example cimx53js.conf) which includes
the variant configuration.

This will allow for customers to create their own machine keeping the
module include file.

The variant can be configured in the local.conf file with a
MACHINE_VARIANT variable.

The variant names are made up of the interface initials as follows:

    w: wifi
    e: externel ethernel
    b: bluetooth
    1: 1-wire
    a: accelerometer
    g: GPU
    v: VPU
    128: 128MB RAM
    4k: 1024MB NAND (only for MX51 JTAG flash)

For details regarding the supported variants, each machine configuration
file contains a comment with a variants table.

https://jira.digi.com/browse/DEL-330

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-04-22 17:28:44 +02:00
Javier Viguera e79805f038 base-files: fix bitbake parsing error
An error appeared trying to setup a jenkins job to build yocto.

When using dettached repos for the different layers (as a result of
using 'repo' tool) bitbake somehow fails to parse 'base-files' recipe
because the branch of the layers is '(no branch)'.

The error message is:

ERROR: ExpansionError during parsing /data/jenkins/jobs/yocto_test/workspace/digi-yocto-sdk.jviguera_mkproject/sources/poky/meta/recipes-core/base-files/base-files_3.0.14.bb: Failure expanding variable do_install: ShellSyntaxError: LexToken(TOKEN,'nobranch',0,0)
followed by:
  LexToken(RPARENS,')',0,0)
  LexToken(TOKEN,':34e5537e67b655b8d2effbbecc207d88eea52b87"\nmeta-fsl-arm      = "',0,0)
  LexToken(LPARENS,'(',0,0)
  LexToken(TOKEN,'nobranch',0,0)
  LexToken(RPARENS,')',0,0)

This commit fixes the problem.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 15:08:02 +02:00
Javier Viguera 13ae6f8bc9 base-files: change check_output (not available on python 2.6)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-04-19 12:04:39 +02:00
Alex Gonzalez bc9c48b201 meta-digi: Use common template for recipes.
All recipes include:

# Copyright (C) 2013 Digi International.

DESCRIPTION=""
SECTION=""

DEPENDS = ""
LICENSE = ""
LIC_FILES_CHKSUM = ""

PR="rn"

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-03-22 13:57:54 +01:00
Alex Gonzalez 0cea6d53fd meta-digi: Unify bbappend files with template
All bbappend files will start as follows:

# Copyright (C) 2013 Digi International.

PRINC := "${@int(PRINC) + 1}"
PR_append = "+${DISTRO}"

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-03-21 14:09:54 +01:00
Javier Viguera 26d98d13ff meta-digi: add 'ubootenv' tool
https://jira.digi.com/browse/DEL-286

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-03-12 16:47:43 +01:00
Javier Viguera df80921748 meta-digi: add 'nvram' tool
https://jira.digi.com/browse/DEL-286

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-03-12 16:47:20 +01:00
Javier Viguera bd8ca73775 meta-digi-del: add '/etc/os-release' file
This file contains version and OS info.

https://jira.digi.com/browse/DEL-280 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-03-11 18:24:00 +01:00
Alex Gonzalez 11bb2bbca7 meta-digi: Do not hardcode distro in PR_appends.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-03-06 18:25:37 +01:00
Alex Gonzalez 994595da74 meta-digi-del: Remove del override.
We want customers that use meta-digi-del to be able to define their own
distros without breaking our recipes.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-03-05 18:37:55 +01:00
Alex Gonzalez 1b6cc41acf meta-digi-del: Add VIRTUAL-RUNTIME_ntp.
Move busybox-ntpd from del-core to del-network and allow for it to be
configurable via VIRTUAL-RUNTIME-ntpd.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-03-05 18:37:54 +01:00
Alex Gonzalez 7c57b2659c meta-digi: Add accel-graphics machine feature.
The del-image-minimal will included the graphical acceleration libraries
if the machine supports accel-graphics.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-02-28 13:55:06 +01:00
Javier Viguera cab3e32599 meta-digi-del: rework HTTP servers
Enable by default 'busybox-httpd'
Install Digi default page for both busybox-httpd and cherokee
Provide basic cherokee configuration

https://jira.digi.com/browse/DEL-151 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-02-26 14:33:08 +01:00
Alex Gonzalez 7aa69fd88f digi-image-graphical: Reduce and split into features.
Qt is extracted to the del-qt feature.

All packages which belong to other future features, like del-profile or
del-test, are also left out from the default image.

Fixes https://jira.digi.com/browse/DEL-233

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-02-11 18:53:26 +01:00
Javier Viguera 44c84a9425 meta-digi-del: add device table support
And configure it to create GPIO nodes on boot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-02-06 19:31:14 +01:00
Alex Gonzalez fe2344344e del-image-graphical: Use udev instead of busybox-mdev.
This will make input device auto detect through evdev work.

Strangely busybox-mdev is still installed. May need to find the
dependency but nothing breaks because of it.

This partially fixes DEL-227.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-02-01 18:35:20 +01:00
Javier Viguera f6df6b3916 meta-digi-del: enable 'swap' applets in busybox
Enabled mkswap, swapon and swapoff.

Probably not much needed in an embedded system but they don't make the
binary much bigger and could be useful in some corner-case.

https://jira.digi.com/browse/DEL-209 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-02-01 12:00:40 +01:00
Javier Viguera 452abcf9de meta-digi-del: set correct WPA driver depending on the machine
This fixes a bug in 'ccardxmx28js' where the wpa_supplicant was using
the wrong driver 'wext' instead of the 'nl80211' (for atheros)

https://jira.digi.com/browse/DEL-220 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-31 17:40:30 +01:00
Alex Gonzalez 28e2e69733 del-image-minimal: Add package-management feature.
This is needed for package post installation scripts to run their
second stage in the target.

For this to happen we also need to remove the "remove_packaging_data_files"
from the rootfs post process commands.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-01-31 16:03:00 +01:00
Alex Gonzalez 3b465914c0 meta-digi: Add del-image-graphical target image.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-01-31 16:03:00 +01:00
Javier Viguera 6b261a3949 meta-digi-del: enable busybox' brctl applet
Also enable CONFIG_BRIDGE in kernel configs (which is required to use
brctl)

https://jira.digi.com/browse/DEL-156 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-29 13:40:59 +01:00
Alex Gonzalez 68c5a90ebf meta-digi-del: Generate interfaces file on the fly and add ifup.
The interfaces file is different depending on whether we have single
or dual wired ethernet and whether we have a wireless or non wireless
module.

Also, add an ifup script to set the mac addresses fetched from the
kernel command line.

This commit autogenerates the /etc/network/interfaces file.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-01-28 17:58:45 +01:00
Javier Viguera de86402042 meta-digi-del: add 'busybox-ntpd' package
Use busybox' ntpd applet as basic ntp client.

https://jira.digi.com/browse/DEL-144 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-24 19:05:24 +01:00
Javier Viguera 9292ff3e4d busybox-hwclock: enable 'hwclock' bootscript
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-24 18:49:03 +01:00
Javier Viguera 1405e22241 busybox-mdev: create shared-memory mount point
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-23 19:09:41 +01:00
Javier Viguera 6d0eadd562 meta-digi-del: del-core packagegroup tweaks
- use 'busybox-mdev' as dev manager
- remove 'tinylogin' from login manager

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-23 18:15:12 +01:00
Javier Viguera 5d946c7cfe meta-digi-del: add override 'mdev' bootscript
https://jira.digi.com/browse/DEL-159 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-22 18:32:50 +01:00
Javier Viguera df15208a8c meta-digi-del: enable 64-bit math support in busybox
This fixes 'out-of-range' errors:

~ # [ "2173165883" -eq "2173165883" ] && echo "TRUE"
sh: 2173165883: out of range

https://jira.digi.com/browse/DEL-207 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-22 17:22:31 +01:00
Javier Viguera ca91bedf08 meta-digi-del: tune target's boot
Remove 'login' on VT (tty1)
Remove 'bootlogd' (with also uses tty1)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-21 14:35:00 +01:00
Javier Viguera b9e0768236 meta-digi-del: add 'suspend' and mount/umount scripts
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-21 14:35:00 +01:00
Javier Viguera 63f206cd23 meta-digi-del: add 'update_flash' application
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-16 16:00:11 +01:00
Alex Gonzalez a4ea304034 meta-digi-del: Append netbase to customize startup scripts.
Add custom /etc/init.d/networking and /etc/network/interfaces.

The networking script does the start section on the background which
inlcudes the bringing up of the interfaces. In this way DHCP does not
delay the boot up.

The interfaces file configures the wireless interface to be automatically
brought up.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-01-14 18:42:27 +01:00
Alex Gonzalez bb4364365b meta-digi-del: Add del-bluetooth feature.
It will be included in all machines that include the bluetooth feature,
currently the ccardxmx28js.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-01-11 11:12:07 +01:00
Javier Viguera 767cb77672 meta-digi-del: symplify packagegroups
There is no need to explicitly set PACKAGES variable (it is
automatically handled by packagegroup.bbclass)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-04 19:48:54 +01:00
Javier Viguera 536e17549f meta-digi-del: rename tasks to packagegroups
For Yocto 1.3 'Danny' migration.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-04 19:48:54 +01:00
Javier Viguera a5a313fb79 meta-digi-del: update busybox to danny
Yocto 1.3 (danny) already supports busybox-1.20, so just make a
bbappend.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-04 19:48:54 +01:00
Javier Viguera 1192172b9f meta-digi: update to Yocto 1.3 'Danny'
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-04 11:22:26 +01:00
Javier Viguera 2b13330e9d meta-digi-del: remove overriden 'base-passwd' recipe
And set the 'root' password later on a ROOTFS_POSTPROCESS_COMMAND
function.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-03 11:21:08 +01:00
Javier Viguera 0d146e72e9 meta-digi-del: fix IMAGE_FEATURES in del-image-minimal recipes
If we override the variable with '=' instead of '+=' then extra image
features set in project's local.conf (EXTRA_IMAGE_FEATURES variable) are
discarded.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-02 19:36:01 +01:00
Alex Gonzalez 41369cede1 meta-digi-del: Add the del-debug feature.
It currently includes memwatch and fbtest.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-20 15:14:40 +01:00
Alex Gonzalez 6f88b7ba27 meta-digi-del: Move libdigi inside recipes-digi.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-20 15:14:40 +01:00
Alex Gonzalez abc6dd8e57 meta-digi-del: del-image-minimal, select features by machine support.
Only add del-audio and del-gstreamer if supported by the machine.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-17 14:08:42 +01:00
Alex Gonzalez b809da65e8 meta-digi-del: task-del-core, add tslib if touchscreen supported.
If the machine definition support a touchscreen ,add tslib and
related test apps.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-17 13:44:45 +01:00
Alex Gonzalez fd7e53800d meta-digi: Replace folders naming format.
We have been using ${PN}-${PV}, change to use only the package name and
leave ${PN}-${PV} for actual recipes.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-13 13:04:39 +01:00
Alex Gonzalez f305d31d6f meta-digi: Add the redpine wireless driver.
This included the recipe where the driver is cloned from git and compiled
from source.

The recipe also copies the firmware files and the if-pre-up scrip.

Pending is the recipe to link from precompiled objects in a .tar.gz file.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-12 17:00:18 +01:00
Alex Gonzalez ef280d0812 meta-digi-del: Add usbutils to task-del-core.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-12-05 11:08:56 +01:00
Javier Viguera f2ec84467e task-del-core: add busybox-mdev package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2012-11-29 18:47:42 +01:00
Javier Viguera 219110cc76 busybox: add mdev hotplug handlers
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2012-11-29 18:47:42 +01:00
Javier Viguera 972963f83f meta-digi-del: remove busybox 1.19 override
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2012-11-28 19:25:29 +01:00