diff --git a/tools/mkimage.c b/tools/mkimage.c
index 4e561820e7723597a46d3804cad3a236522e9e69..32e07be94af3b0e809e5807ef12d3ce8e01a48b0 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -301,6 +301,8 @@ static void process_args(int argc, char **argv)
 		else if (!params.datafile)
 			usage("Missing data file for auto-FIT (use -d)");
 	} else if (type != IH_TYPE_INVALID) {
+		if (type == IH_TYPE_SCRIPT && !params.datafile)
+			usage("Missing data file for script (use -d)");
 		params.type = type;
 	}