diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/.gitignore | 1 | ||||
| -rw-r--r-- | scripts/Makefile | 1 | ||||
| -rw-r--r-- | scripts/basic/.gitignore | 1 | ||||
| -rw-r--r-- | scripts/basic/Makefile | 1 | ||||
| -rw-r--r-- | scripts/basic/bin2c.c (renamed from scripts/bin2c.c) | 7 |
5 files changed, 5 insertions, 6 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore index fb070fa1038f..5ecfe93f2028 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | conmakehash | 4 | conmakehash |
| 5 | kallsyms | 5 | kallsyms |
| 6 | pnmtologo | 6 | pnmtologo |
| 7 | bin2c | ||
| 8 | unifdef | 7 | unifdef |
| 9 | ihex2fw | 8 | ihex2fw |
| 10 | recordmcount | 9 | recordmcount |
diff --git a/scripts/Makefile b/scripts/Makefile index 890df5c6adfb..72902b5f2721 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -13,7 +13,6 @@ HOST_EXTRACFLAGS += -I$(srctree)/tools/include | |||
| 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms | 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms |
| 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo | 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo |
| 15 | hostprogs-$(CONFIG_VT) += conmakehash | 15 | hostprogs-$(CONFIG_VT) += conmakehash |
| 16 | hostprogs-$(CONFIG_IKCONFIG) += bin2c | ||
| 17 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount | 16 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount |
| 18 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable | 17 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable |
| 19 | hostprogs-$(CONFIG_ASN1) += asn1_compiler | 18 | hostprogs-$(CONFIG_ASN1) += asn1_compiler |
diff --git a/scripts/basic/.gitignore b/scripts/basic/.gitignore index a776371a3502..9528ec9e5adc 100644 --- a/scripts/basic/.gitignore +++ b/scripts/basic/.gitignore | |||
| @@ -1 +1,2 @@ | |||
| 1 | fixdep | 1 | fixdep |
| 2 | bin2c | ||
diff --git a/scripts/basic/Makefile b/scripts/basic/Makefile index 4fcef87bb875..afbc1cd69ac5 100644 --- a/scripts/basic/Makefile +++ b/scripts/basic/Makefile | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | # fixdep: Used to generate dependency information during build process | 9 | # fixdep: Used to generate dependency information during build process |
| 10 | 10 | ||
| 11 | hostprogs-y := fixdep | 11 | hostprogs-y := fixdep |
| 12 | hostprogs-$(CONFIG_IKCONFIG) += bin2c | ||
| 12 | always := $(hostprogs-y) | 13 | always := $(hostprogs-y) |
| 13 | 14 | ||
| 14 | # fixdep is needed to compile other host programs | 15 | # fixdep is needed to compile other host programs |
diff --git a/scripts/bin2c.c b/scripts/basic/bin2c.c index 96dd2bcbb407..af187e695345 100644 --- a/scripts/bin2c.c +++ b/scripts/basic/bin2c.c | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | int main(int argc, char *argv[]) | 12 | int main(int argc, char *argv[]) |
| 13 | { | 13 | { |
| 14 | int ch, total=0; | 14 | int ch, total = 0; |
| 15 | 15 | ||
| 16 | if (argc > 1) | 16 | if (argc > 1) |
| 17 | printf("const char %s[] %s=\n", | 17 | printf("const char %s[] %s=\n", |
| @@ -19,10 +19,9 @@ int main(int argc, char *argv[]) | |||
| 19 | 19 | ||
| 20 | do { | 20 | do { |
| 21 | printf("\t\""); | 21 | printf("\t\""); |
| 22 | while ((ch = getchar()) != EOF) | 22 | while ((ch = getchar()) != EOF) { |
| 23 | { | ||
| 24 | total++; | 23 | total++; |
| 25 | printf("\\x%02x",ch); | 24 | printf("\\x%02x", ch); |
| 26 | if (total % 16 == 0) | 25 | if (total % 16 == 0) |
| 27 | break; | 26 | break; |
| 28 | } | 27 | } |
