Update buildroot 2018.05.1 / u-boot (#150)

* Update buildroot 2018.05.1 / u-boot

* Cleanup

* Fix bl
This commit is contained in:
Pascal Vizeli
2018-08-07 16:45:12 +02:00
committed by GitHub
parent bbe4c47574
commit 9ef96373a9
131 changed files with 1320 additions and 656 deletions

View File

@@ -1,4 +1,4 @@
From 57051bdfadcd27f405d05716c8d568b69fec575a Mon Sep 17 00:00:00 2001
From e22e7b8bf6eca98af102dd27991c089b8f3de65b Mon Sep 17 00:00:00 2001
From: Pascal Vizeli <pvizeli@syshack.ch>
Date: Sun, 5 Aug 2018 20:43:03 +0000
Subject: [PATCH 1/1] CMD: read string from fileinto env
@@ -7,8 +7,8 @@ Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
---
cmd/Kconfig | 5 +++++
cmd/Makefile | 1 +
cmd/fileenv.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+)
cmd/fileenv.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+)
create mode 100644 cmd/fileenv.c
diff --git a/cmd/Kconfig b/cmd/Kconfig
@@ -41,13 +41,14 @@ index 323f1fd2c77..0d721dc5a72 100644
obj-$(CONFIG_CMD_SMC) += smccc.o
diff --git a/cmd/fileenv.c b/cmd/fileenv.c
new file mode 100644
index 00000000000..ea7428723a5
index 00000000000..ddfc5dcdbc0
--- /dev/null
+++ b/cmd/fileenv.c
@@ -0,0 +1,44 @@
@@ -0,0 +1,45 @@
+#include <config.h>
+#include <common.h>
+#include <command.h>
+#include <linux/ctype.h>
+
+static char *fs_argv[5];
+
@@ -69,14 +70,14 @@ index 00000000000..ea7428723a5
+ size_t size = env_get_hex("filesize", 0);
+
+ // Prepare string
+ addr[size +1] = 0x00;
+ addr[size] = 0x00;
+ char *s = addr;
+ while(*s != 0x00) {
+ if (*s == 0x0a || *s == 0x0d) {
+ *s = 0x00;
+ if (isprint(*s)) {
+ s++;
+ }
+ else {
+ s++;
+ *s = 0x00;
+ }
+ }
+