Skip to contentSkip to conversation

SMDKV310: Fix host compilation of mkv310_image

PATCH Superseded Dirk Behme 3 participants 4 messages Jul 11, 2011 – Aug 5, 2011

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH v2 1/1 SMDKV310: Fix host compilation of mkv310_image

From: Dirk Behme <[email protected]>

Fix compilation of mkv310_image host tool

tools/mkv310_image.c: In function 'main':
tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function)

resulting from a 'make smdkv310_config'.

---
Changes in v2: Use sys/stat.h instead of linux/stat.h

Note: mkv310_image is compiled for the host by the host's gcc:

cd mmc_spl/board/samsung/smdkv310
gcc tools/mkv310_image.c -o tools/mkv310_mmc_spl_exec

 mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c |    1 +
 1 file changed, 1 insertion(+)
mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c +1 -0
Index: u-boot.git/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c
===================================================================
@@ -26,6 +26,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #define CHECKSUM_OFFSET		(14*1024-4)
 #define BUFSIZE			(16*1024)
#1 lore raw

PATCH v2 1/1 SMDKV310: Fix host compilation of mkv310_image

Quoted 39 lines · Dirk Behme

From: Dirk Behme <[email protected]>

Fix compilation of mkv310_image host tool

tools/mkv310_image.c: In function 'main':
tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function)

resulting from a 'make smdkv310_config'.

---
Changes in v2: Use sys/stat.h instead of linux/stat.h

Note: mkv310_image is compiled for the host by the host's gcc:

cd mmc_spl/board/samsung/smdkv310
gcc tools/mkv310_image.c -o tools/mkv310_mmc_spl_exec

?mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c | ? ?1 + ?1 file changed, 1 insertion(+)

Index: u-boot.git/mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c
===================================================================

mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c +0 -0
@@ -26,6 +26,7 @@

?#include <fcntl.h>
?#include <errno.h>
?#include <string.h>
+#include <sys/stat.h>

Quoted 7 lines

?#define CHECKSUM_OFFSET ? ? ? ? ? ? ? ?(14*1024-4) ?#define BUFSIZE ? ? ? ? ? ? ? ? ? ? ? ?(16*1024)
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Ok.
Dear Minkyu,
Please apply

Signature · 2 lines
with warm regards,
Chander Kashyap
#2 lore raw

PATCH v2 1/1 SMDKV310: Fix host compilation of mkv310_image

Dear Dirk Behme,

Quoted 22 lines · Chander Kashyap
Quoted 21 lines · Dirk Behme

From: Dirk Behme <[email protected]>

Fix compilation of mkv310_image host tool

tools/mkv310_image.c: In function 'main':
tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function)

resulting from a 'make smdkv310_config'.

---
Changes in v2: Use sys/stat.h instead of linux/stat.h

Quoted 8 lines
Quoted 8 lines

Note: mkv310_image is compiled for the host by the host's gcc:

cd mmc_spl/board/samsung/smdkv310
gcc tools/mkv310_image.c -o tools/mkv310_mmc_spl_exec

?mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c | ? ?1 + ?1 file changed, 1 insertion(+)

applied to u-boot-samsung.

Please use "git format-patch" to make patches.

Thanks
Minkyu Kang

Signature · 2 lines
from. prom.
www.promsoft.net
author
#3 lore raw

PATCH v2 1/1 SMDKV310: Fix host compilation of mkv310_image

Quoted 27 lines · Minkyu Kang

Dear Dirk Behme,

Quoted 24 lines · Chander Kashyap
Quoted 23 lines · Dirk Behme

From: Dirk Behme<[email protected]>

Fix compilation of mkv310_image host tool

tools/mkv310_image.c: In function 'main':
tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once tools/mkv310_image.c:67: error: for each function it appears in.) tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function) tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function)

resulting from a 'make smdkv310_config'.

---
Changes in v2: Use sys/stat.h instead of linux/stat.h

Note: mkv310_image is compiled for the host by the host's gcc:

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

cd mmc_spl/board/samsung/smdkv310
gcc tools/mkv310_image.c -o tools/mkv310_mmc_spl_exec

  mmc_spl/board/samsung/smdkv310/tools/mkv310_image.c |    1 +
  1 file changed, 1 insertion(+)

applied to u-boot-samsung.

Could we get a pull request for u-boot-samsung to get this fixed in mainline?

Many thanks

Dirk