Merge pull request #5123 from HiassofT/le10-arm-mem

config/options: add ARM_MEM_SUPPORT option to control arm-mem inclusion
This commit is contained in:
CvH 2021-02-11 20:49:39 +01:00 committed by GitHub
commit 8a50423273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,13 @@ export PROJECT="${PROJECT:-Generic}"
export ARCH="${ARCH:-x86_64}"
TARGET_ARCH="${ARCH}"
# include arm-mem package on arm
if [ "${TARGET_ARCH}" = "arm" ]; then
ARM_MEM_SUPPORT="yes"
else
ARM_MEM_SUPPORT="no"
fi
# include helper functions
. config/functions

View File

@ -12,7 +12,7 @@ PKG_DEPENDS_INIT="toolchain glibc:init"
PKG_SECTION="virtual"
PKG_LONGDESC="Meta package for installing various tools and libs needed for libc"
if [ "${TARGET_ARCH}" = "arm" ]; then
if [ "${ARM_MEM_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" arm-mem"
PKG_DEPENDS_INIT+=" arm-mem:init"
fi