summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-02-13 18:53:29 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-02-13 18:53:29 +0000
commitb4fd5d852a84f141bf5d34cdf33d2d969d051edd (patch)
treeb3bf5183f7587efd536c761b8e3f92747f0bf908 /rbutil/mkamsboot
parent9ec0c1669cc9d10f8d38d165dd965c6c9277372d (diff)
downloadrockbox-b4fd5d852a84f141bf5d34cdf33d2d969d051edd.tar.gz
rockbox-b4fd5d852a84f141bf5d34cdf33d2d969d051edd.tar.bz2
rockbox-b4fd5d852a84f141bf5d34cdf33d2d969d051edd.zip
Include dualboot.h in dualboot.c as an additional compile time sanity check
Author: Tobias Diedrich Flyspray: FS #11009 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot')
-rw-r--r--rbutil/mkamsboot/dualboot.c2
-rw-r--r--rbutil/mkamsboot/dualboot/bin2c.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/mkamsboot/dualboot.c b/rbutil/mkamsboot/dualboot.c
index 015e580213..85d7210691 100644
--- a/rbutil/mkamsboot/dualboot.c
+++ b/rbutil/mkamsboot/dualboot.c
@@ -1,5 +1,7 @@
/* Generated by bin2c */
+#include "dualboot.h"
+
unsigned char nrv2e_d8[168] = {
0x0f, 0x18, 0x01, 0x24, 0x65, 0x42, 0xe4, 0x07, 0x05, 0x26, 0x36, 0x02, 0x0a, 0xe0, 0x00, 0x20,
0x00, 0x47, 0x04, 0x78, 0x64, 0x41, 0x01, 0x30, 0x24, 0x06, 0xf7, 0x46, 0x03, 0x78, 0x01, 0x30,
diff --git a/rbutil/mkamsboot/dualboot/bin2c.c b/rbutil/mkamsboot/dualboot/bin2c.c
index e8619eae87..9a8c9c7dfe 100644
--- a/rbutil/mkamsboot/dualboot/bin2c.c
+++ b/rbutil/mkamsboot/dualboot/bin2c.c
@@ -90,6 +90,7 @@ int main (int argc, char* argv[])
}
fprintf(cfile,"/* Generated by bin2c */\n\n");
+ fprintf(cfile,"#include \"%s\"\n\n", hfilename);
fprintf(hfile,"/* Generated by bin2c */\n\n");
for(i=0; i < argc - 2; i++) {