Commit Graph

831 Commits

Author SHA1 Message Date
Javier Viguera a014ca4c09 meta-digi: improve mkproject script
Some minor enhancements to mkproject script:

* Add 'conf-notes' files with DEY specific information. This is shown
  when you create the project or when you reload the environment in an
  already created project.

* Create a 'dey-setup-environment' script in the project's folder that
  allows to reload the environment in a new terminal.

* Remove the PATH variable tweaking. This was needed in older versions
  of Yocto, where the PATH kept growing each time you reloaded the
  environment, but it has been fixed in poky, so there is no need to do
  the same in our mkproject script.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-26 16:29:22 +02:00
Javier Viguera c9b82ed477 build.sh: adapt script after 'dey-gui' distro removal
https://jira.digi.com/browse/DEL-858

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:23:40 +02:00
Javier Viguera 794f9f58dc meta-digi-dey: remove dey-gui distro
We used to have two distros:

  DEY: without X11 support
  DEY-GUI: with X11 support

After the change, we have just one DEY distro with X11 support. At the
same time add a CONFLICT_DISTRO_FEATURE to dey-image-minimal so it
cannot be built with X11 distro feature enabled. So now in order to
build 'dey-image-minimal':

DISTRO_FEATURES_remove = "x11"

needs to be added to your project's local.conf file.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:22:37 +02:00
Javier Viguera 5e3c8b3e13 meta-digi-dey: move NETWORK_MANAGER variable to x11-sato bbappend
NETWORK_MANAGER is a packagegroup-core-x11-sato recipe variable, so
override it in a bbappend instead of at a distro level.

At the same time remove a useless WEB variable from the image recipe.
WEB is a packagegroup-core-x11-sato local variable as well, and
overriding it in another recipe does not have any effect, so just
remove it.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:21:35 +02:00
Javier Viguera 9b59e02dea initscripts: recover support for static device table
This was working in dey-1.4 because there was a basic support for static
nodes in poky. They removed it in Yocto 1.6.

We still need this functionality, so add it here in the bbappend.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-19 15:50:47 +02:00
Javier Viguera f12cad7882 bluez4: use legacy pygobject instead of gobject-introspection
gobject introspection is not supported in Yocto, so there is not a
python binding package to use it.

Bluez4 uses such functionality in some of the test scripts. This patch
replaces it with the legacy pygobject, so they can work again.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 18:38:13 +02:00
Javier Viguera b67ad75565 dey.conf: bump distro version to 1.6.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 16:38:43 +02:00
Javier Viguera 15bc6db536 meta-digi-dey: rework dey-image-graphical image to save space
* Remove inconditional inclusion of dey-gstreamer: dey-image-minimal
  includes dey-gstreamer if MACHINE_FEATURES contains 'accel-video'
  so dey-image-graphical inherits this from dey-image-minimal.
  This does not make any difference for IMX platforms but allows to
  remove inconditional inclusion of dey-gstreamer for MXS. To allow
  'gaku' (sato audio player) playing MP3 files COMMERCIAL_AUDIO_PLUGINS
  is added to the distro config file.

* Only include 'owl-video' if MACHINE_FEATURES contains 'accel-video'.

* Remove inconditional inclusion of qt4-examples from dey-qt
  packagegroup. Package qt4-examples is part of the RRECOMMENDS for
  package qt4-demos, so it will be included anyway and not having it
  hard-coded allows to bad-recommend it for some platforms and not
  for others.

* Use BAD_RECOMMENDATIONS to avoid inclusion of 'qt4-demos-doc' package
  for all platforms (this package does not add any value and weights
  about 50MB) and 'qt4-examples' for ccardimx28js.

With all those changes, we get a graphical image with GTK + QT that fits
in the standard rootfs partition for ccardimx28js.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 12:09:58 +02:00
Javier Viguera 8d4656a978 qt4: integrate deprecated fsl-gui-extrafiles package
This package was used in 'meta-fsl-demos' layer, but was deprecated and
removed. It includes desktop launchers for QT4 demo/example apps. We
still show those demo apps, so integrate the launchers directly into a
qt4 bbappend.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-18 09:49:59 +02:00
Javier Viguera 1c5d54a4c3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-17 20:03:08 +02:00
Javier Viguera a3c1aa7626 meta-digi: update revisions for dey-1.6.2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 17:16:56 +02:00
Javier Viguera d4f3d29ef9 linux-dey: add initrd/initramfs support for ccardimx28js
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 17:08:31 +02:00
Javier Viguera 3b6835ac1b meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 11:17:21 +02:00
Javier Viguera 9c98226892 dey-image-graphical: include QT
https://jira.digi.com/browse/DEL-1145

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-12 18:49:45 +02:00
Robert Hodaszi 7b649a1f03 image-types_digi.bbclass: add possibility to append extra arguments to UBIFS image creation
Add possibility for other layers to add additional features for UBIFS creation,
e.g. "-R <rp_size>" for super-user reserved pool.

Signed-off-by: Robert Hodaszi <robert.hodaszi@digi.com>
2014-09-12 17:48:19 +02:00
Alex Gonzalez 8e7e7124d9 meta-digi-dey: init-ifupdown: Allow to configure interfaces file.
The interfaces file is now dynamically created for eth0, eth1 and wlan0. By
default they are configured if enabled in the machine features, and have
the same static configuration as before.

The static IPs can be configured as follows:

ETHn_STATIC_IP = "<ip address>"
ETHn_STATIC_NETMASK = "<netmask>"
ETHn_STATIC_GATEWAY = "<gateway>"

WLAN0_STATIC_IP = "<ip address>"
WLAN0_STATIC_NETMASK = "<netmask>"

To configure dynamic IPs you can use the following configuration in your
local.conf:

ETHn_DHCP = "dhcp"
WLAN0_DHCP = "dhcp"

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-09-11 18:01:59 +02:00
Alex Gonzalez c89c0f8443 meta-digi-dey: wpa-supplicant: Remove example adhoc configuration.
Adhoc mode is no longer supported by Atheros.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-09-09 16:44:48 +02:00
Javier Viguera 22fd403eeb cherokee: enable SSL/HTTPS support
https://jira.digi.com/browse/DEL-1214

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-08 18:25:08 +02:00
Alex Gonzalez 370259e806 meta-digi-arm: kernel-module-atheros, add debugging mask to init script.
By default debug logging is disabled, but this make it easy to enable.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-09-08 12:14:04 +02:00
Javier Viguera 5a450ae240 build.sh: do not rm-work linux, u-boot and dey images
These are key packages that we may need to debug in the buildserver, so
do not remove the object files.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-08 11:30:13 +02:00
Alex Gonzalez e3b71e90dd btfilter: Rewrite netlink listener code.
https://jira.digi.com/browse/DEL-1174

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-08-26 19:10:35 +02:00
Javier Viguera fb1da18ea1 meta-digi: update revisions for dey-1.6.2.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-07 14:26:48 +02:00
Javier Viguera d3f843f6cb meta-digi-arm: use 'v3.10/dey-1.6/maint' branch for MX6
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-06 16:25:42 +02:00
Javier Viguera 0d42da6e12 meta-digi: cosmetic, fix typos
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-05 16:07:11 +02:00
Alex Gonzalez f0222aba8d kernel-module-atheros: Remove atheros wireless before suspend.
By removing the driver on ifdown and loading it on ifup we workaround some
problems found in long run suspend stability testing.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-08-05 09:45:12 +02:00
Alex Gonzalez 01f7230481 meta-digi-arm: linux-dey-3.10: ccimx6: Sync defconfig with kernel.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-08-05 09:45:11 +02:00
Javier Viguera 21d23c99d1 meta-digi-arm: set u-boot 2013.01 as preferred version
This will be the preferred version for ccardimx28. Then use platform
override to set the one for ccimx5 and ccimx6.

Not having a platform override in the machine config file allows to do
a simple version override in the project's local.conf file with:

PREFERRED_VERSION_u-boot-dey = "2009.08"

Otherwise, if we use a platform override in the machine config that
takes precedence over a normal override in the project's local.conf
and we would have needed something like:

PREFERRED_VERSION_u-boot-dey_ccardimx28 ?= "2013.01"

in the project's config.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-04 18:43:20 +02:00
Javier Viguera 98c8a75a2f build.sh: adapt script to new ccard default kernel 3.10
Adapt the jenkins build script to build for ccardimx28js by default
linux 3.10 and u-boot 2013.01 and as alternative configuration linux
2.6.35.14 and u-boot 2009.08

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 19:04:06 +02:00
Javier Viguera 3cdc5f14b5 meta-digi-arm: use kernel 3.10 by default for ccardimx28js
https://jira.digi.com/browse/DEL-1168

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 19:03:08 +02:00
Javier Viguera 036fdf88ad u-boot: use dub-1.6 maintenance branch
This is the branch used for platforms using kernel 2.6.35 (at the moment
MX5 and ccardimx28)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 15:48:53 +02:00
Javier Viguera 07400ea730 meta-digi-arm: enable more BT profiles in kernel defconfigs
https://jira.digi.com/browse/DEL-1161
https://jira.digi.com/browse/DEL-1162

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-31 19:21:31 +02:00
Javier Viguera 0afd50c1d8 dey-examples: add bluetooth examples for ccimx6
https://jira.digi.com/browse/DEL-1141

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-30 13:39:35 +02:00
Javier Viguera df97e28cbe bluez init: add HW variants for ccimx6
https://jira.digi.com/browse/DEL-1157

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-30 12:37:18 +02:00
Javier Viguera 9e8c3630de meta-digi-dey: remove splash support
This removes the Openembedded logo and leaves the kernel splash until
the desktop is ready.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 19:36:50 +02:00
Javier Viguera 656e0cbfc5 pointercal-xinput: use generic bbappend
Use the wildcard for recipe matching. This makes easier the update of
recipe versions.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 18:58:27 +02:00
Javier Viguera cb47933305 pointercal.xinput: add empty calibration for ccimx6
Override the default from meta-fsl-arm for MX6 which is configured for
eGalax touchscreen.

We create an empty calibration file because the Fusion touch works just
fine without calibration.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 18:54:28 +02:00
Javier Viguera 3df330bd33 meta-digi-arm: disable gst-fsl-plugin for MX28 machines
FSL has this enabled but in our case it fails to build for ccardimx28js
using linux 3.10 with error:

fatal error: linux/mxcfb.h: No such file or directory

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-29 12:27:23 +02:00
Alex Gonzalez 33a8e4b450 meta-digi-arm: linux-dey-3.10: ccimx6: Sync defconfigs with kernel.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-07-28 11:08:57 +02:00
Javier Viguera d664364858 dey-examples: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:34 +02:00
Javier Viguera b4a589e196 sysvinit: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:29 +02:00
Javier Viguera 40c4b02ebd pointercal-xinput: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:25 +02:00
Javier Viguera 6eb1fc7c4d wpa_supplicant: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:21 +02:00
Javier Viguera 84d0775eb1 u-boot: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:17 +02:00
Javier Viguera afca308575 alsa-state: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:13 +02:00
Javier Viguera eb5f07b154 kernel-module-atheros: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:02 +02:00
Javier Viguera 1a54b81586 meta-digi-arm: add support for Digi platform families
Add platform family to SOC_FAMILY, so it's part of the MACHINEOVERRIDES
variable and it can be used to generalize bitbake recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:39:00 +02:00
Javier Viguera 7e5c25fc70 sysvinit: use update-rc.d to remove bootlogd symlinks
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-09 18:36:25 +02:00
Alex Gonzalez af4aefb2f1 meta-digi-arm: kernel-module-atheros: Update SRC_URI.
This updates the driver to upstream AR6003-ISC-v3.4p6-b3.4.0.225.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-06-26 15:58:13 +02:00
Javier Viguera c3e5f0d359 busybox: remove 'resume_storage_devices' function from suspend script
This was needed to overcome some corner cases with storage devices on
suspend/resume using MDEV as device handler.

Now we are using UDEV and after some tests done it seems that the
'resume_storage_devices' hack is not needed anymore.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-26 10:38:51 +02:00
Javier Viguera f4857a582c busybox: disable '-R' udhcpc option from ifupdown
udhcpc's '-R' option means 'Release IP on exit'.

This fixes a strange corner case on reboot: if you configure your network
interface to DHCP in '/etc/network/interfaces' AND you have some NFS
share mounted on your system, then running reboot command fails to
complete and it hangs on:

'Unmounting local filesystem'

This happens because on reboot TERM and KILL signals are sent to all
the processes in the system before umounting the local filesystem. When
udhcpc daemon receives the signal it exits and releases the IP (because
it was launched with '-R') leaving an unconfigured network interface
that later is unable to umount a network filesystem (NFS), resulting on
'reboot' command being unable to complete.

Removing the '-R' option from udchpc allows to kill the process without
unconfiguring the network interface.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-25 17:32:43 +02:00