mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/cpuinfo: new package
This package is required by tensorflow-lite. Tested-by: Stefan Hager <stefan.hager@ginzinger.com> Signed-off-by: Stefan Hager <stefan.hager@ginzinger.com> Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
294d13bb85
commit
ea1cc1af55
@@ -3032,6 +3032,9 @@ F: package/libvpx/
|
|||||||
F: package/mesa3d-demos/
|
F: package/mesa3d-demos/
|
||||||
F: package/ti-gfx/
|
F: package/ti-gfx/
|
||||||
|
|
||||||
|
N: Stefan Hager <stefan.hager@ginzinger.com>
|
||||||
|
F: package/cpuinfo/
|
||||||
|
|
||||||
N: Stefan Nickl <Stefan.Nickl@gmail.com>
|
N: Stefan Nickl <Stefan.Nickl@gmail.com>
|
||||||
F: board/freescale/imx8dxlevk/
|
F: board/freescale/imx8dxlevk/
|
||||||
F: configs/freescale_imx8dxlevk_defconfig
|
F: configs/freescale_imx8dxlevk_defconfig
|
||||||
|
|||||||
@@ -1801,6 +1801,7 @@ menu "Hardware handling"
|
|||||||
source "package/bcm2835/Config.in"
|
source "package/bcm2835/Config.in"
|
||||||
source "package/c-periphery/Config.in"
|
source "package/c-periphery/Config.in"
|
||||||
source "package/ccid/Config.in"
|
source "package/ccid/Config.in"
|
||||||
|
source "package/cpuinfo/Config.in"
|
||||||
source "package/dtc/Config.in"
|
source "package/dtc/Config.in"
|
||||||
source "package/gnu-efi/Config.in"
|
source "package/gnu-efi/Config.in"
|
||||||
source "package/hackrf/Config.in"
|
source "package/hackrf/Config.in"
|
||||||
|
|||||||
17
package/cpuinfo/Config.in
Normal file
17
package/cpuinfo/Config.in
Normal file
@@ -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
package/cpuinfo/cpuinfo.hash
Normal file
4
package/cpuinfo/cpuinfo.hash
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 37bb2fd2d1e87102baea8d131a0c550c4ceff5a12fba61faeb1bff63868155f1 cpuinfo-8a1772a0c5c447df2d18edf33ec4603a8c9c04a6.tar.gz
|
||||||
|
# License files, locally calculated
|
||||||
|
sha256 8e7e60636c3aa0cb03571a1a841ce5697f9551ff92b3c426c2561613d15ade70 LICENSE
|
||||||
17
package/cpuinfo/cpuinfo.mk
Normal file
17
package/cpuinfo/cpuinfo.mk
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# cpuinfo
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
CPUINFO_VERSION = 8a1772a0c5c447df2d18edf33ec4603a8c9c04a6
|
||||||
|
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))
|
||||||
Reference in New Issue
Block a user