summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile2
-rw-r--r--mdk-stage1/modules.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index af4ec2e15..546090b87 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -205,7 +205,7 @@ $(STAGE1OBJS-CDROM): %-CDROM.o: %.c
$(DIET) $(COMPILE) $(INCLUDES) $(CDROM_DEFS) -c $< -o $@
$(STAGE1OBJS-NETWORK): %-NETWORK.o: %.c
- $(DIET) $(COMPILE) $(INCLUDES) $(NETWORK_DEFS) $(PCMCIA_DEFS) $(USB_DEFS_GEN) -c $< -o $@
+ $(DIET) $(COMPILE) $(INCLUDES) $(NETWORK_DEFS) $(PCMCIA_DEFS) $(USB_DEFS_GEN) -DENABLE_ADDITIONAL_MODULES -c $< -o $@
$(STAGE1OBJS-FULL): %-FULL.o: %.c
$(DIET) $(COMPILE) $(INCLUDES) $(USB_DEFS_GEN) $(PCMCIA_DEFS) -DENABLE_BOOTSPLASH -c $< -o $@
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index cd8e981d3..3ba947e1f 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -88,6 +88,7 @@ static void *grab_file(const char *filename, unsigned long *size)
static enum return_type ensure_additional_modules_available(void)
{
+#ifdef ENABLE_ADDITIONAL_MODULES
struct stat statbuf;
if (stat(additional_archive_name, &statbuf)) {
char floppy_mount_location[] = "/tmp/floppy";
@@ -139,6 +140,10 @@ static enum return_type ensure_additional_modules_available(void)
return ret;
} else
return RETURN_OK;
+#else
+ allow_additional_modules_floppy = 0;
+ return RETURN_ERROR;
+#endif
}
int insmod_local_file(char * path, char * options)