From 7c8dbf46a81f9cafdbc616389d46b81b4bc3bc1e Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Wed, 17 Feb 2010 14:37:06 +0000 Subject: mkamsboot: update dualboot.c / dualboot.h in place This removes the need for copying these files to ../ and removes the risk of only copying one of the files (which led to bricking 2 c200v2 already) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24719 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/mkamsboot/dualboot/bin2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rbutil/mkamsboot/dualboot/bin2c.c') diff --git a/rbutil/mkamsboot/dualboot/bin2c.c b/rbutil/mkamsboot/dualboot/bin2c.c index 9a8c9c7dfe..830224c35a 100644 --- a/rbutil/mkamsboot/dualboot/bin2c.c +++ b/rbutil/mkamsboot/dualboot/bin2c.c @@ -26,6 +26,7 @@ #include #include #include +#include #ifndef O_BINARY #define O_BINARY 0 @@ -90,7 +91,7 @@ int main (int argc, char* argv[]) } fprintf(cfile,"/* Generated by bin2c */\n\n"); - fprintf(cfile,"#include \"%s\"\n\n", hfilename); + fprintf(cfile,"#include \"%s\"\n\n", basename(hfilename)); fprintf(hfile,"/* Generated by bin2c */\n\n"); for(i=0; i < argc - 2; i++) { -- cgit v1.2.3