Index: bootloader/common.c =================================================================== --- bootloader/common.c (Revision 19124) +++ bootloader/common.c (Arbeitskopie) @@ -29,6 +29,7 @@ #include "common.h" #include "power.h" #include "kernel.h" +#include "config.h" /* TODO: Other bootloaders need to be adjusted to set this variable to true on a button press - currently only the ipod, H10 and Sansa versions do. */ @@ -140,8 +141,10 @@ unsigned long sum; int i; char filename[MAX_PATH]; - - snprintf(filename,sizeof(filename),"/.rockbox/%s",firmware); +#ifndef BOOTDIR +#warning BOOTDIR not defined +#endif + snprintf(filename,sizeof(filename), BOOTDIR "/%s",firmware); fd = open(filename, O_RDONLY); if(fd < 0) {