summaryrefslogtreecommitdiffstats
path: root/core/modules/nvidia-libs@
diff options
context:
space:
mode:
authorSimon Rettberg2023-08-10 19:10:00 +0200
committerSimon Rettberg2023-08-10 19:10:00 +0200
commitb67e9ddb559ab72d9a19fdab2fb392dc034b04f3 (patch)
tree18c997960953e84d8bd35eb968e6200b3c4fbcd2 /core/modules/nvidia-libs@
parentTry to get versioned targets and modules under control (diff)
downloadmltk-b67e9ddb559ab72d9a19fdab2fb392dc034b04f3.tar.gz
mltk-b67e9ddb559ab72d9a19fdab2fb392dc034b04f3.tar.xz
mltk-b67e9ddb559ab72d9a19fdab2fb392dc034b04f3.zip
fix shit
Diffstat (limited to 'core/modules/nvidia-libs@')
-rw-r--r--core/modules/nvidia-libs@/module.build10
1 files changed, 5 insertions, 5 deletions
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"
}