From b67e9ddb559ab72d9a19fdab2fb392dc034b04f3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 10 Aug 2023 19:10:00 +0200 Subject: fix shit --- core/modules/nvidia-libs@/module.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/modules/nvidia-libs@') diff --git a/core/modules/nvidia-libs@/module.build b/core/modules/nvidia-libs@/module.build index d738d22f..c721cfda 100644 --- a/core/modules/nvidia-libs@/module.build +++ b/core/modules/nvidia-libs@/module.build @@ -1,12 +1,12 @@ #!/bin/bash pre_exec() { - [ -z "$MODULE_VERSION" ] && perror "Not run from an @ target" + [ -z "$TARGET_VERSION" ] && perror "Not run from an @ target" local SRC SZ - SRC="${ROOT_DIR}/tmp/work/nvidia-common/build/$MODULE_VERSION" - [ -d "$SRC" ] || perror "nvidia-common did not build $MODULE_VERSION" + SRC="${ROOT_DIR}/tmp/work/nvidia-common/build/$TARGET_VERSION" + [ -d "$SRC" ] || perror "nvidia-common did not build $TARGET_VERSION" SZ=$( du -sk "$SRC" | awk '{print $1}' ) - (( SZ < 200000 )) && perror "nvidia-common for $MODULE_VERSION is less than 200MB, fishy" + (( SZ < 200000 )) && perror "nvidia-common for $TARGET_VERSION is less than 200MB, fishy" # XXX Now we override the MODULE_BUILD_DIR, where mltk will then grab alle the required files from MODULE_BUILD_DIR="$SRC" } @@ -15,7 +15,7 @@ post_copy() { # generate addon-required for this version cat <<-EOF > "${TARGET_BUILD_DIR}/addon-required" #!/bin/ash - [ "\$( cat /sys/module/nvidia/version )" = "$MODULE_VERSION" ] + [ "\$( cat /sys/module/nvidia/version )" = "$TARGET_VERSION" ] EOF chmod +x "${TARGET_BUILD_DIR}/addon-required" } -- cgit v1.2.3-55-g7522