added the rules to create the splash screen data and the external
references to the binary data
This commit is contained in:
parent
2768155f4e
commit
374f1d78eb
|
@ -1,4 +1,4 @@
|
||||||
OBJS=main.o sysinput.o fbinit.o log.o gpio.o msg_queue.o time_func.o
|
OBJS=main.o sysinput.o fbinit.o log.o gpio.o msg_queue.o time_func.o splash.o
|
||||||
LIBS=-lbcm2835 -lpthread
|
LIBS=-lbcm2835 -lpthread
|
||||||
|
|
||||||
upiwin: $(OBJS)
|
upiwin: $(OBJS)
|
||||||
|
@ -7,5 +7,11 @@ upiwin: $(OBJS)
|
||||||
.c.o:
|
.c.o:
|
||||||
gcc -c $(CFLAGS) $<
|
gcc -c $(CFLAGS) $<
|
||||||
|
|
||||||
|
splash.o: splash.bin
|
||||||
|
ld -r -b binary --rename-section .data=.rodata,alloc,load,readonly,data,contents -o splash.o splash.bin
|
||||||
|
|
||||||
|
splash.bin: splash.png ../buildutils/mksplash
|
||||||
|
../buildutils/mksplash splash.png splash.bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f upiwin *.o *~
|
rm -f upiwin *.o *~
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
#include "fbinit.h"
|
#include "fbinit.h"
|
||||||
#include "scode.h"
|
#include "scode.h"
|
||||||
|
|
||||||
|
/* references to splash screen data in splash.o/splash.bin */
|
||||||
|
extern uint8_t _binary_splash_start[];
|
||||||
|
extern uint8_t _binary_splash_end;
|
||||||
|
extern uint8_t _binary_splash_size;
|
||||||
|
|
||||||
static int fb_fd = -1;
|
static int fb_fd = -1;
|
||||||
|
|
||||||
static FBINFO local_info;
|
static FBINFO local_info;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user