Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/bump 2024.02 #104

Open
wants to merge 42 commits into
base: chargepoint/2024.02.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9da0dce
ci: add style check for all packages on PR
Mar 16, 2022
2fe88a7
support/misc: update the Vagrantfile to use the git checkout
chardin-cpi Apr 19, 2021
d2f9160
package/dhcp: fix dhcp symlink in target/var/lib/dhcp
chardin-cpi Oct 27, 2020
f337ec5
package/raw2rgbpnm: add raw2rgbpnm package and patches
mhungerford-cpi Apr 15, 2021
47d8e16
package/psplash: point to the customized psplash for ChargePoint
mhungerford-cpi Feb 26, 2020
5682e07
package/psplash: add the start order for the psplash systemd
chardin-cpi Sep 7, 2022
bc0ab1e
boot/uboot: add u-boot-dtb.imx.log as target
mrobak-cpi Nov 13, 2020
48c5627
package/uboot-tools: add force read pem flag to mkimage
mrobak-cpi Oct 8, 2020
0e41c93
package/imx-seco: add choices for imx8 socs
aswathgajendran-cpi Feb 9, 2022
8e9bb8e
package/libcoap: enable the examples for interop testing
chardin-cpi May 13, 2021
401f045
package/systemd: set options for resolver mode
Aug 7, 2021
f3ca91b
package/systemd: add configuration support for SysV compat
chardin-cpi Feb 23, 2022
352687e
package/modemmanaager: enable AT interface with bool flag
Sep 21, 2021
b1a8fa4
package/cmake: add openssl dependency to cmake
mrrosen-cpi Feb 15, 2022
a1fa8b8
package/sdbus-cpp: add support to build the host stub generator
chardin-cpi May 11, 2022
551d88a
package/libwebsockets: add extra cmake LWS_BUILD_HASH arguments
Sep 17, 2020
d6c7d5f
package/libwebsockets: add sd-event support if systemd is installed
May 11, 2021
dbbf6b2
package/libwebsockets: add option to enable or disable netlink support
Mar 18, 2022
c67d0be
package/libwebsockets: add support for doing non-blocking DNS
Aug 30, 2022
dfde67a
toolchain/toolchain-external: update aarch64 toolchain for host aarch64
chardin-cpi Sep 18, 2022
c3db951
package/qt5{base, declarative}: custom package from license QT 5.15.12
chardin-cpi Jan 18, 2023
761daa7
package/qt5: add a gcc13 compiler fix patch for qt5location
chardin-cpi Mar 26, 2024
da0e154
support/download: add a helper scipt to generate scmversions
chardin-cpi Jun 21, 2023
42b8599
boot/uboot: add a scmversion rsync hook when overriding srcdir
chardin-cpi Jun 21, 2023
8e87279
linux: add a scmversion rsync hook when overriding srcdir
chardin-cpi Jun 21, 2023
5e2f4af
package/go-native: add a new download only package for go compilers
chardin-cpi Jul 4, 2023
e3a8166
package/python-dateutil: add host python package for dependencies
ckhardin Aug 22, 2023
39e1c5f
package/python-docopt: add host python package for dependencies
ckhardin Aug 22, 2023
64926be
package/python-ruamel-yaml: add host python package for dependencies
ckhardin Aug 22, 2023
6901b35
package/python-pykwalify: add required package for zephyr cmake
ckhardin Aug 3, 2023
c70e58b
package/python-colorama: add in host package for dependencies
chardin-cpi Aug 23, 2023
03184f9
package/python3: add the configuration to support python curses
ckhardin Aug 24, 2023
b911100
feat(package/freescale-imx/firmware-sentinel): create package
davidschneider-cpi Sep 15, 2023
bd75010
package/python-intelhex: enable as host package
davidschneider-cpi Oct 12, 2023
7e9dcdb
package/python3: when using the host curses use readline as well
chardin-cpi Oct 15, 2023
12e87ef
package/python-click: enable as host python package
chardin-cpi Dec 5, 2023
ad00b2b
package/python-cbor2: enable as host python package
chardin-cpi Dec 5, 2023
a61fad2
package/balena-engine: bump to version 20.10.40
geertlens-cpi Dec 12, 2023
5263717
package/freescale-imx: update the packages to support linux 6.1.x
ckhardin Jan 13, 2024
c40a102
package/libcap: avoid calling /sbin/ldconfig during the host build
chardin-cpi Mar 13, 2024
38a66e0
package/tensorflow-lite: apply the patches series from upstream
chardin-cpi Mar 13, 2024
e3709d6
package/gst1-plugins-good: add qt5tools as a dependency
ckhardin Mar 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: buildroot-style-check

on:
pull_request:
branches: [ 'chargepoint/**' ]

jobs:
buildroot_package_check:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Python setup
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
- name: Run buildroot package checks
run: |
pip install --upgrade pip
pip install --upgrade flake8 six python-magic
python3 utils/check-package -v **/*.mk
python3 utils/check-package -v **/Config.in*

12 changes: 12 additions & 0 deletions DEVELOPERS
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,18 @@ N: Stefan Nickl <[email protected]>
F: board/freescale/imx8dxlevk/
F: configs/freescale_imx8dxlevk_defconfig

N: Stefan Hager <[email protected]>
F: package/cpuinfo/
F: package/farmhash/
F: package/fp16/
F: package/fft2d/
F: package/gemmlowp/
F: package/psimd/
F: package/pthreadpool/
F: package/ruy/
F: package/tensorflow-lite/
F: package/xnnpack/

N: Stefan Ott <[email protected]>
F: package/unbound/

Expand Down
16 changes: 14 additions & 2 deletions boot/uboot/uboot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,29 @@ UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL))
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
UBOOT_SITE_METHOD = git
UBOOT_SCMVERSION = YES
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y)
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
UBOOT_SITE_METHOD = hg
else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_SVN),y)
UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
UBOOT_SITE_METHOD = svn
UBOOT_SCMVERSION = YES
else
# Handle stable official U-Boot versions
UBOOT_SITE = https://ftp.denx.de/pub/u-boot
UBOOT_SOURCE = u-boot-$(UBOOT_VERSION).tar.bz2
endif

ifneq ($(UBOOT_OVERRIDE_SRCDIR),)
define UBOOT_SCMVERSION_HOOK
$(TOPDIR)/support/download/scmversion \
$(abspath $(UBOOT_OVERRIDE_SRCDIR)) $(@D)/.scmversion
endef

UBOOT_POST_RSYNC_HOOKS += UBOOT_SCMVERSION_HOOK
endif

ifeq ($(BR2_TARGET_UBOOT)$(BR2_TARGET_UBOOT_LATEST_VERSION),y)
BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
endif
Expand Down Expand Up @@ -88,6 +99,7 @@ endif

ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMX),y)
UBOOT_BINS += u-boot-dtb.imx
UBOOT_BINS += u-boot-dtb.imx.log
UBOOT_MAKE_TARGET += u-boot-dtb.imx
endif

Expand Down Expand Up @@ -552,10 +564,10 @@ endif # BR2_TARGET_UBOOT_CUSTOM_TARBALL
ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT)$(BR2_TARGET_UBOOT_CUSTOM_HG),y)
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)),)
$(error No custom U-Boot repository URL specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_URL setting)
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_URL
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_REPO_URL
ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION)),)
$(error No custom U-Boot repository version specified. Check your BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION setting)
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_CUSTOM_REPO_VERSION
endif # qstrip BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
endif # BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG

endif # BR2_TARGET_UBOOT && BR_BUILDING
Expand Down
11 changes: 11 additions & 0 deletions linux/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
LINUX_SITE_METHOD = git
LINUX_SCMVERSION = YES
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
LINUX_SITE_METHOD = hg
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
LINUX_SITE_METHOD = svn
LINUX_SCMVERSION = YES
else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION)$(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y)
LINUX_SOURCE = linux-cip-$(LINUX_VERSION).tar.gz
LINUX_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot
Expand All @@ -46,6 +48,15 @@ LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v$(firstword $(subst ., ,$(LINUX_
endif
endif

ifneq ($(LINUX_OVERRIDE_SRCDIR),)
define LINUX_SCMVERSION_HOOK
$(TOPDIR)/support/download/scmversion \
$(abspath $(LINUX_OVERRIDE_SRCDIR)) $(@D)/.scmversion
endef

LINUX_POST_RSYNC_HOOKS += LINUX_SCMVERSION_HOOK
endif

ifeq ($(BR2_LINUX_KERNEL)$(BR2_LINUX_KERNEL_LATEST_VERSION),y)
BR_NO_CHECK_HASH_FOR += $(LINUX_SOURCE)
endif
Expand Down
12 changes: 12 additions & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ comment "Graphic libraries"
source "package/ocrad/Config.in"
source "package/ogre/Config.in"
source "package/psplash/Config.in"
source "package/raw2rgbpnm/Config.in"
source "package/sdl/Config.in"
source "package/sdl_gfx/Config.in"
source "package/sdl_image/Config.in"
Expand Down Expand Up @@ -1263,6 +1264,7 @@ menu "External python modules"
source "package/python-pyicu/Config.in"
source "package/python-pyinotify/Config.in"
source "package/python-pyjwt/Config.in"
source "package/python-pykwalify/Config.in"
source "package/python-pylibfdt/Config.in"
source "package/python-pylibftdi/Config.in"
source "package/python-pylru/Config.in"
Expand Down Expand Up @@ -1732,6 +1734,7 @@ menu "Hardware handling"
source "package/bcm2835/Config.in"
source "package/c-periphery/Config.in"
source "package/ccid/Config.in"
source "package/cpuinfo/Config.in"
source "package/dtc/Config.in"
source "package/gnu-efi/Config.in"
source "package/hackrf/Config.in"
Expand Down Expand Up @@ -2108,13 +2111,17 @@ menu "Other"
source "package/elfutils/Config.in"
source "package/ell/Config.in"
source "package/falcosecurity-libs/Config.in"
source "package/farmhash/Config.in"
source "package/fft2d/Config.in"
source "package/fftw/Config.in"
source "package/flann/Config.in"
source "package/flatbuffers/Config.in"
source "package/flatcc/Config.in"
source "package/fp16/Config.in"
source "package/fxdiv/Config.in"
source "package/gconf/Config.in"
source "package/gdal/Config.in"
source "package/gemmlowp/Config.in"
source "package/gflags/Config.in"
source "package/gli/Config.in"
source "package/glibmm/Config.in"
Expand Down Expand Up @@ -2220,15 +2227,19 @@ endif
source "package/protobuf/Config.in"
source "package/protobuf-c/Config.in"
source "package/protozero/Config.in"
source "package/psimd/Config.in"
source "package/pthreadpool/Config.in"
source "package/qhull/Config.in"
source "package/qlibc/Config.in"
source "package/reproc/Config.in"
source "package/riemann-c-client/Config.in"
source "package/ruy/Config.in"
source "package/shapelib/Config.in"
source "package/skalibs/Config.in"
source "package/sphinxbase/Config.in"
source "package/startup-notification/Config.in"
source "package/tbb/Config.in"
source "package/tensorflow-lite/Config.in"
source "package/tinycbor/Config.in"
source "package/tl-expected/Config.in"
source "package/tllist/Config.in"
Expand All @@ -2237,6 +2248,7 @@ endif
source "package/uvw/Config.in"
source "package/volk/Config.in"
source "package/xapian/Config.in"
source "package/xnnpack/Config.in"
endmenu

menu "Security"
Expand Down
1 change: 1 addition & 0 deletions package/Config.in.host
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ menu "Host utilities"
source "package/go/Config.in.host"
source "package/go-bootstrap-stage1/Config.in.host"
source "package/go-bootstrap-stage2/Config.in.host"
source "package/go-native/Config.in.host"
source "package/google-breakpad/Config.in.host"
source "package/gptfdisk/Config.in.host"
source "package/imagemagick/Config.in.host"
Expand Down
2 changes: 1 addition & 1 deletion package/balena-engine/balena-engine.hash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Locally computed
sha256 1482b64e35d5406be719e362647ed7d0599cf4eead7770247ebd972c4c85ede5 balena-engine-20.10.26.tar.gz
sha256 6aa4e8653801ce1496296653dff173b5a9a3b0355709b5ce484c4e1e6e331aba balena-engine-20.10.40.tar.gz
sha256 7c87873291f289713ac5df48b1f2010eb6963752bbd6b530416ab99fc37914a8 LICENSE
4 changes: 2 additions & 2 deletions package/balena-engine/balena-engine.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

BALENA_ENGINE_VERSION = 20.10.26
BALENA_ENGINE_VERSION = 20.10.40
BALENA_ENGINE_SITE = $(call github,balena-os,balena-engine,v$(BALENA_ENGINE_VERSION))

BALENA_ENGINE_LICENSE = Apache-2.0
Expand Down Expand Up @@ -83,10 +83,10 @@ endef
define BALENA_ENGINE_INSTALL_SYMLINK
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-daemon
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-containerd
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-containerd-shim
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-containerd-ctr
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-runc
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-engine-proxy
ln -f -s balena-engine $(TARGET_DIR)/usr/bin/balena-containerd-shim-runc-v2
$(if $(BR2_PACKAGE_TINI),ln -f -s tini $(TARGET_DIR)/usr/bin/balena-engine-init)
endef
BALENA_ENGINE_POST_INSTALL_TARGET_HOOKS += BALENA_ENGINE_INSTALL_SYMLINK
Expand Down
4 changes: 2 additions & 2 deletions package/cmake/cmake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ CMAKE_IGNORE_CVES = CVE-2016-10642
# host-cmake package, then the (target-)cmake package can be built
# using the cmake infrastructure;
# * CMake bundles its dependencies within its sources. This is the
# reason why the host-cmake package has no dependencies:, whereas
# reason why the host-cmake package has few dependencies:, whereas
# the (target-)cmake package has a lot of dependencies, using only
# the system-wide libraries instead of rebuilding and statically
# linking with the ones bundled into the CMake sources.

CMAKE_DEPENDENCIES = zlib jsoncpp libcurl libarchive expat bzip2 xz libuv rhash
HOST_CMAKE_DEPENDENCIES = host-openssl

CMAKE_CONF_OPTS = \
-DKWSYS_LFS_WORKS=TRUE \
Expand Down Expand Up @@ -58,7 +59,6 @@ define HOST_CMAKE_CONFIGURE_CMDS
-DCMAKE_C_FLAGS="$(HOST_CMAKE_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$(HOST_CMAKE_CXXFLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$(HOST_LDFLAGS)" \
-DCMAKE_USE_OPENSSL:BOOL=OFF \
-DBUILD_CursesDialog=OFF \
)
endef
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From 66dbf4fbe202318860caeab3b1ef9c2fe70e2c4c Mon Sep 17 00:00:00 2001
From: James Hilliard <[email protected]>
Date: Sun, 29 Jan 2023 16:55:08 -0700
Subject: [PATCH] Enable CXX only when needed for tests/benchmarks

Signed-off-by: James Hilliard <[email protected]>
[Upstream status:
https://github.com/pytorch/cpuinfo/pull/133]
---
CMakeLists.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f4d1d1..9e1c153 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
# ---[ Setup project
PROJECT(
cpuinfo
- LANGUAGES C CXX
+ LANGUAGES C
)

# ---[ Options.
@@ -103,6 +103,12 @@ ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|WindowsStore|CYGWIN|MSYS|Darwin|
ENDIF()
ENDIF()

+IF(CPUINFO_SUPPORTED_PLATFORM)
+ IF(CPUINFO_BUILD_MOCK_TESTS OR CPUINFO_BUILD_UNIT_TESTS OR CPUINFO_BUILD_BENCHMARKS)
+ ENABLE_LANGUAGE(CXX)
+ ENDIF()
+ENDIF()
+
# ---[ Download deps
SET(CONFU_DEPENDENCIES_SOURCE_DIR ${CMAKE_SOURCE_DIR}/deps
CACHE PATH "Confu-style dependencies source directory")
--
2.34.1

17 changes: 17 additions & 0 deletions package/cpuinfo/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
config BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
bool
default y if BR2_aarch64
default y if BR2_arm
default y if BR2_i386
default y if BR2_x86_64

config BR2_PACKAGE_CPUINFO
bool "cpuinfo"
depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
help
CPU INFOrmation library, cpuinfo is a library to detect
essential for performance optimization information about
host CPU.

https://github.com/pytorch/cpuinfo
4 changes: 4 additions & 0 deletions package/cpuinfo/cpuinfo.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Locally calculated
sha256 cf243e7ac07cd5e2ac58dcb29f8a9047b7887452212aead2ddf1ceda45cc66dd cpuinfo-eb4a6674bfe9cf91b63b9817412ae5f6862c8432.tar.gz
# License files, locally calculated
sha256 8e7e60636c3aa0cb03571a1a841ce5697f9551ff92b3c426c2561613d15ade70 LICENSE
17 changes: 17 additions & 0 deletions package/cpuinfo/cpuinfo.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
################################################################################
#
# cpuinfo
#
################################################################################

CPUINFO_VERSION = eb4a6674bfe9cf91b63b9817412ae5f6862c8432
CPUINFO_SITE = $(call github,pytorch,cpuinfo,$(CPUINFO_VERSION))
CPUINFO_LICENSE = BSD-2-Clause
CPUINFO_LICENSE_FILES = LICENSE
CPUINFO_INSTALL_STAGING = YES
CPUINFO_CONF_OPTS = \
-DCPUINFO_BUILD_UNIT_TESTS=OFF \
-DCPUINFO_BUILD_MOCK_TESTS=OFF \
-DCPUINFO_BUILD_BENCHMARKS=OFF

$(eval $(cmake-package))
6 changes: 3 additions & 3 deletions package/dhcp/dhcp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ define DHCP_INSTALL_CTL_LIBS
endef
define DHCP_INSTALL_SERVER
mkdir -p $(TARGET_DIR)/var/lib
(cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
(cd $(TARGET_DIR)/var/lib; ln -snf ../../tmp dhcp)
$(MAKE) -C $(@D)/server DESTDIR=$(TARGET_DIR) install-sbinPROGRAMS
$(INSTALL) -m 0644 -D package/dhcp/dhcpd.conf \
$(TARGET_DIR)/etc/dhcp/dhcpd.conf
Expand All @@ -117,15 +117,15 @@ endif
ifeq ($(BR2_PACKAGE_DHCP_RELAY),y)
define DHCP_INSTALL_RELAY
mkdir -p $(TARGET_DIR)/var/lib
(cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
(cd $(TARGET_DIR)/var/lib; ln -snf ../../tmp dhcp)
$(MAKE) -C $(@D)/relay DESTDIR=$(TARGET_DIR) install-sbinPROGRAMS
endef
endif

ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y)
define DHCP_INSTALL_CLIENT
mkdir -p $(TARGET_DIR)/var/lib
(cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
(cd $(TARGET_DIR)/var/lib; ln -snf ../../tmp dhcp)
$(MAKE) -C $(@D)/client DESTDIR=$(TARGET_DIR) sbindir=/sbin \
install-sbinPROGRAMS
$(INSTALL) -m 0644 -D package/dhcp/dhclient.conf \
Expand Down
12 changes: 12 additions & 0 deletions package/farmhash/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
config BR2_PACKAGE_FARMHASH
bool "farmhash"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
help
FarmHash, a family of hash functions.

https://github.com/google/farmhash

comment "farmhash needs a toolchain w/ C++11"
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
4 changes: 4 additions & 0 deletions package/farmhash/farmhash.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Locally calculated
sha256 18392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115 farmhash-0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz
# License files, locally calculated
sha256 4162dd091caae234f72d3b57e138174f733e736b2430a4c51b098b17d866fcb6 COPYING
14 changes: 14 additions & 0 deletions package/farmhash/farmhash.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# farmhash
#
################################################################################

FARMHASH_VERSION = 0d859a811870d10f53a594927d0d0b97573ad06d
FARMHASH_SITE = $(call github,google,farmhash,$(FARMHASH_VERSION))
FARMHASH_LICENSE = MIT
FARMHASH_LICENSE_FILES = COPYING
FARMHASH_INSTALL_STAGING = YES
FARMHASH_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"

$(eval $(autotools-package))
Loading