9 Commits

Author SHA1 Message Date
Daniel F. Dickinson
2acdf5e5cd classes: Split lua 5.1 compile options into separate class
We split off the lua compile options into a separate class
so that packages that need them but not workaround for lack
of proper SOVERSION don't inherit a problem.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-02-02 10:03:05 -08:00
Daniel F. Dickinson
1960ad17c0 classes: Add copyright headers to classes
Every file that can should have a copyright header, so added to classes.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-23 23:14:47 -06:00
Daniel F. Dickinson
3e0e8b776d tree-wide: Include Openwrt license when pulling from openwrt repo
Package pulling scripts and configs from openwrt.git were not
indicating the GPL-2.0+ license on that repo.  Therefore add
the LICENSE file from openwrt.git and update LICENSE with an
'&GPL-2.0+'.  Since this is primarily initscripts and such,
while most of the actual software (like procd, ubus) etc is
under an MIT, BSD, or Apache license, it may be desirable to
replace the scripts with MIT, BSD, or Apache scripts.

Closes https://github.com/kraj/meta-openwrt/issues/43

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-19 16:20:47 -08:00
Daniel F. Dickinson
d5ae060fb3 distro: Be a better distro 'flavour' rather than distro
Drop the conf/nodistro.conf that actually ends up being a distro
and document using INHERHIT += " openwrt-distro-defaults " in local.conf OR
an actual distro's conf.  Also prevent setting DISTRO_FEATURES to include
procd from overriding DISTRO_FEATURES and thereby losing the libc locale
config used with glibc (resulting in locale build failures).

Closes https://github.com/kraj/meta-openwrt/issues/30

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-18 20:49:36 -08:00
Daniel F. Dickinson
02a89fb11e classes/openwrt: Update with VIRTUAL-RUNTIME's for openwrt defaults
Openwrt has different defaults for e.g. dev_manager than usual
OE so make it easy to set them by inherting.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-17 10:26:15 -08:00
Daniel F. Dickinson
ea7e7d535c tree-wide: Update to lede-17.01 (latest Openwrt stable as of re-merge)
Updates recipes to use lede-17.01 which is the latest OpenWrt stable
branch as of the remerge of LEDE and Openwrt.  Also refresh, update,
and add patches as necessary to allow to build.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-17 10:26:15 -08:00
Aaron Brice
dde912c4df openwrt: Add OPENWRT_SRCREV to openwrt.bbclass
Since multiple recipes are going to be copying files out of openwrt
repository, specify the revision to use for that repo once, in
openwrt.bbclass, to avoid recipes copying files out of different
revisions.

Signed-off-by: Aaron Brice <aaron.brice@datasoft.com>
2017-02-17 17:28:57 -08:00
Theodore A. Roth
7a0d0ab9db openwrt.bbclass: fix LUAPATH
Running the native lua5.1 binary to get the lua module path doesn't play
nice with using SSTATE with multiple build environments:

    $ bitbake -e libubox | grep EXTRA_OECMAKE
    # $EXTRA_OECMAKE [5 operations]
    EXTRA_OECMAKE=" -DLUAPATH=`lua5.1 -e \"for k in string.gmatch(package.cpath .. \
    \\";\\", \\"([^;]+)/..so;\\") do if k:sub(1,1) == \\"/\\" then print(k) \
    break end end\" | \
    sed 's#/home/troth/git/econe-yocto/build-morty-qemux86/tmp/sysroots/x86_64-linux##'` \
    -DBUILD_EXAMPLES=ON -DBUILD_LUA=ON -DCMAKE_SKIP_RPATH=ON \${PACKAGECONFIG_CONFARGS}"

    $ tmp/sysroots/x86_64-linux/usr/bin/lua5.1 -e "for k in string.gmatch(package.cpath .. \
    \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
    /home/troth/git/econe-yocto/build-morty/tmp/sysroots/x86_64-linux/usr/lib/lua/5.1

Just use a fixed string for the path instead of trying to programmatically generate it.

Signed-off-by: Theodore A. Roth <theodore_roth@trimble.com>
2017-01-18 21:49:45 -08:00
Khem Raj
53167b4838 openwrt.bbclass: Move to classes folder
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-01-22 00:43:56 +00:00