Merge pull request #2151 from InuSasha/feature/rewrite-build

buildsystem: rework build script
This commit is contained in:
MilhouseVH
2017-11-22 12:14:57 +00:00
committed by GitHub
775 changed files with 866 additions and 1798 deletions

View File

@@ -174,7 +174,7 @@ reset_pkg_vars() {
PKG_REV="0"
PKG_ARCH="any"
PKG_LICENSE="unknown"
PKG_AUTORECONF="no"
PKG_TOOLCHAIN="auto"
PKG_IS_ADDON="no"
PKG_PYTHON_VERSION="python2.7"
}
@@ -757,6 +757,7 @@ print_color() {
CLR_APPLY_PATCH) clr_actual="boldgreen";;
CLR_AUTORECONF) clr_actual="boldmagenta";;
CLR_BUILD) clr_actual="boldyellow";;
CLR_TOOLCHAIN) clr_actual="boldmagenta";;
CLR_CLEAN) clr_actual="boldred";;
CLR_FIXCONFIG) clr_actual="boldyellow";;
CLR_GET) clr_actual="boldcyan";;

View File

@@ -33,7 +33,7 @@ PKG_DEPENDS_TARGET="toolchain curl" # dependencies that are neede
PKG_SECTION="service" # service, tools, virtual, driver, driver.remote ...
PKG_SHORTDESC="Addon name: sort description" # Addon: is a program that does this and that
PKG_LONGDESC="Addon name ($PKG_VERSION): detailed description"
PKG_AUTORECONF="no" # yes or no
PKG_TOOLCHAIN="auto" # auto, meson, cmake, cmake-make, configure, make, ninja, autotools, manual
PKG_IS_ADDON="yes"
PKG_ADDON_NAME="Addon name" # proper name of the addon that is shown at the repo

View File

@@ -27,12 +27,5 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python ADS1x15 Library"
PKG_LONGDESC="Python code to use the ADS1015 and ADS1115 analog to digital converters with a Raspberry Pi or BeagleBone black."
PKG_AUTORECONF="no"
PKG_TOOLCHAIN="manual"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python ADXL345 Library"
PKG_LONGDESC="Python code to use the ADXL345 triple-axis accelerometer over I2C with a Raspberry Pi or BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python BMP Library"
PKG_LONGDESC="Python library for accessing the BMP series pressure and temperature sensors like the BMP085/BMP180 on a Raspberry Pi or Beaglebone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python CharLCD Library"
PKG_LONGDESC="Python library for accessing Adafruit character LCDs from a Raspberry Pi or BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,18 +27,7 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python DHT Library"
PKG_LONGDESC="Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black."
PKG_AUTORECONF="no"
case "$PROJECT:$DEVICE" in
"RPi:RPi")
RPI_VERSION="--force-pi"
;;
"RPi:RPi2")
RPI_VERSION="--force-pi2"
;;
*)
RPI_VERSION=""
esac
PKG_TOOLCHAIN="manual"
pre_make_target() {
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
@@ -46,9 +35,16 @@ pre_make_target() {
}
make_target() {
python setup.py build $RPI_VERSION --cross-compile
}
case "$PROJECT:$DEVICE" in
"RPi:RPi")
PKG_RPI_VERSION="--force-pi"
;;
"RPi:RPi2")
PKG_RPI_VERSION="--force-pi2"
;;
*)
PKG_RPI_VERSION=""
esac
makeinstall_target() {
: # nop
python setup.py build $PKG_RPI_VERSION --cross-compile
}

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python GPIO Library"
PKG_LONGDESC="Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO librarie"
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Python library for controlling LED backpack displays."
PKG_LONGDESC="Python library for controlling LED backpack displays such as 8x8 matrices, bar graphs, and 7/14-segment displays on a Raspberry Pi or BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python LSM303 Library"
PKG_LONGDESC="Python code to use the LSM303 accelerometer & magnetometer with Raspberry Pi & BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python MCP3008 Library"
PKG_LONGDESC="Python code to use the MCP3008 analog to digital converter with a Raspberry Pi or BeagleBone black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python MCP4725 Library"
PKG_LONGDESC="Python code to use the MCP4725 digital to analog converter with a Raspberry Pi or BeagleBone black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python PCA9685 Library"
PKG_LONGDESC="Python code to use the PCA9685 PWM servo/LED controller with a Raspberry Pi or BeagleBone black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Pure python access to Linux IO including I2C and SPI."
PKG_LONGDESC="Pure python access to Linux IO including I2C and SPI. Drop in replacement for smbus and spidev modules."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -28,12 +28,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Python library for the SI1145"
PKG_LONGDESC="Python library for accessing the SI1145 temperature sensor on a Raspberry Pi"
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python SSD1306 Library"
PKG_LONGDESC="SSD1306 oled driver library for 'monochrome' 128x64 and 128x32 OLEDs."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python TCS34725 Library"
PKG_LONGDESC="Python code to use the TCS34725 color sensor with the Raspberry Pi & BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python VCNL40xx Library"
PKG_LONGDESC="Python code to use the VCNL4000 & VCNL4010 proximity sensors with the Raspberry Pi & BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -27,12 +27,4 @@ PKG_DEPENDS_TARGET="toolchain Python2 distutilscross:host"
PKG_SECTION="python"
PKG_SHORTDESC="Adafruit Python WS2801 Library"
PKG_LONGDESC="Python code to control WS2801 and similar SPI interface addressable RGB LED strips on a Raspberry Pi & BeagleBone Black."
PKG_AUTORECONF="no"
make_target() {
: # nop
}
makeinstall_target() {
: # nop
}
PKG_TOOLCHAIN="manual"

View File

@@ -29,8 +29,7 @@ PKG_DEPENDS_TARGET="toolchain glib glib:host"
PKG_SECTION="accessibility"
PKG_SHORTDESC="ATK - Accessibility Toolkit"
PKG_LONGDESC="ATK provides the set of accessibility interfaces that are implemented by other toolkits and applications. Using the ATK interfaces, accessibility tools have full access to view and control running applications."
PKG_AUTORECONF="no"
PKG_USE_MESON="no"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
--disable-rebuilds --enable-introspection=no"

Some files were not shown because too many files have changed in this diff Show More