Teach abuild to emit JUnit formatted build reports
[coreboot.git] / util / cbfstool / cbfs-mkpayload.c
index f8cc1616b0449e21fab0abd9e8e6863e22738a93..baa92ff2375629256959330773e43397067fa0af 100644 (file)
@@ -27,7 +27,6 @@
 #include <fcntl.h>
 #include <getopt.h>
 #include <sys/stat.h>
-#include <arpa/inet.h>
 
 #include "common.h"
 #include "cbfs.h"
@@ -48,6 +47,12 @@ int parse_elf_to_payload(unsigned char *input, unsigned char **output,
        struct cbfs_payload_segment *segs;
        int i;
 
+       if(!iself(input)){
+               printf("Fatal error: the payload file is not in ELF format!\n");
+               exit(1);
+       }
+
+
        comp_func_ptr compress = compression_function(algo);
        if (!compress)
                return -1;