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>
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>
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>
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>
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>
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>
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>