Allow for untracked config.h

This commit is contained in:
Mikaela RJ Szekely 2018-05-13 02:08:44 -04:00
parent 396a646fa3
commit bf63fb0626
No known key found for this signature in database
GPG key ID: AA45D59374537FB5
2 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,10 @@ CFLAGS = \
-fstrict-volatile-bitfields \
-DFUSEE_STAGE1_SRC
ifneq (,$(wildcard src/config.h))
CFLAGS += -DHAS_CONFIG_H
endif
LDFLAGS = -specs=linker.specs -g $(ARCH)
objects = $(patsubst $(dir_source)/%.s, $(dir_build)/%.o, \

View file

@ -10,6 +10,10 @@
#include "lib/printk.h"
#include "display/video_fb.h"
#ifdef HAS_CONFIG_H
#include "config.h"
#endif
extern void (*__program_exit_callback)(int rc);
static void *g_framebuffer;