Commit Graph

15 Commits

Author SHA1 Message Date
Rosen Penev 2e654b19f3 treewide: back to cmake.mk
Ninja was merged to base and therefore we can now use normal cmake.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 21:05:01 -07:00
Hirokazu MORIKAWA 1606574614 libupm: Disable node.js support
Library for node.js will be disabled temporarily due to difficulty in supporting the latest node.js.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-04-28 01:19:03 -07:00
Rosen Penev a31b732007 treewide: build CMake projects with Ninja
faster to compile.

A small selection of packages was tested going from:

Executed in  696.30 secs   fish           external
   usr time   82.98 mins  395.00 micros   82.98 mins
   sys time    9.02 mins    0.00 micros    9.02 mins

to:

Executed in  592.20 secs   fish           external
   usr time   84.84 mins  361.00 micros   84.84 mins
   sys time    8.85 mins   57.00 micros    8.85 mins

Tested by running make -j 12 and wiping staging/build_dir/target_x

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-27 21:51:50 -07:00
Eneas U de Queiroz 30a8d8db6a
libupm: enforce disabling python2
If there are more than two python3 interpreters, and no python2,
libupm thinks one of them is python2 and fails.  Avoid that by
telling it that python2 was not found.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-02-24 21:00:13 -03:00
Hirokazu MORIKAWA af788d4495 libupm: Allow to build only python modules
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-11-11 10:15:34 +09:00
Hirokazu MORIKAWA 8844f433e2 libupm: support node.js v12
Maintainer: @blogic me
Compile tested: head r14241-ba2ddba, x86_64
Run tested: x86_64 (VirtualBox)

Description:
Addressed the build failure with node.js version 12.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-08-25 18:50:16 +09:00
Jeffery To 302f4d17e3 libmraa,libupm: Disable default Python package build recipe
This adds PYTHON3_PKG_BUILD:=0, to disable the default Python package
build recipe. There should be no changes to build output.

This also updates include paths for python3-package.mk to be relative to
the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-18 20:42:59 +08:00
Jeffery To 9c020b1df8 libupm: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:10 +08:00
Hirokazu MORIKAWA 6e6740b0a5 libupm: update to 2.0.0
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-06-19 10:43:21 +09:00
Rosen Penev e8845b49a2 libupm: Update to 1.7.1
The libmraa update introduced several API changes that broke libupm.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-30 13:01:44 -08:00
Eneas U de Queiroz b17b11939e libupm: don't set SWIG_DIR, force python 2.7
CMake 3.0.12 uses SWIG_DIR to set SWIG_LIB, used as the library
install location, which defaults to
$(STAGING_HOSTPKG)/share/sig/(SWIGVERSION).  If it is set, then the
original installed swig library directory is ignored, and compilation
fails:
[  0%] Swig source
:1: Error: Unable to find 'swig.swg'
:3: Error: Unable to find 'python.swg'

Instead of setting it manually, let the default be used, which works
well.

Also, cmake picks up python3, while package wants 2.7, so we add
-DPython_ADDITIONAL_VERSIONS=2.7 to force use of 2.7, not 3.x.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-08-07 10:31:54 -03:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Matthias Schiffer 4a984a8d60
treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424 for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 18:25:54 +01:00
Felix Fietkau 9f8e5aca34 treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with changes in trunk
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2016-01-20 21:56:03 +01:00
John Crispin 221c1e3d03 libupm: add package
upm is a sensor library that sits ontop of libmraa. it has support for a large
number of sensors and exports bindings for node, python, ...

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 12:20:11 +02:00