[U-Boot] [PATCH v4 7/8] board: ge: make VPD code common
Martyn Welch
martyn at welchs.me.uk
Fri Nov 3 10:10:54 UTC 2017
The VPD data is used on a number of GE products. Move the parsing code to
a common location so that we can share this code.
Signed-off-by: Martyn Welch <martyn.welch at collabora.co.uk>
---
Changes in v4:
- New patch.
board/ge/bx50v3/Makefile | 2 +-
board/ge/bx50v3/bx50v3.c | 2 +-
board/ge/common/Makefile | 7 +++++++
board/ge/{bx50v3 => common}/vpd_reader.c | 0
board/ge/{bx50v3 => common}/vpd_reader.h | 0
5 files changed, 9 insertions(+), 2 deletions(-)
create mode 100644 board/ge/common/Makefile
rename board/ge/{bx50v3 => common}/vpd_reader.c (100%)
rename board/ge/{bx50v3 => common}/vpd_reader.h (100%)
diff --git a/board/ge/bx50v3/Makefile b/board/ge/bx50v3/Makefile
index 2fff27b..bcd149f 100644
--- a/board/ge/bx50v3/Makefile
+++ b/board/ge/bx50v3/Makefile
@@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-y := bx50v3.o vpd_reader.o
+obj-y := bx50v3.o
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index 2e8f394..37de990 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -28,7 +28,7 @@
#include <input.h>
#include <pwm.h>
#include <stdlib.h>
-#include "vpd_reader.h"
+#include "../common/vpd_reader.h"
DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_SYS_I2C_EEPROM_ADDR
diff --git a/board/ge/common/Makefile b/board/ge/common/Makefile
new file mode 100644
index 0000000..93e6c01
--- /dev/null
+++ b/board/ge/common/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright 2017 General Electric Company
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y := vpd_reader.o
diff --git a/board/ge/bx50v3/vpd_reader.c b/board/ge/common/vpd_reader.c
similarity index 100%
rename from board/ge/bx50v3/vpd_reader.c
rename to board/ge/common/vpd_reader.c
diff --git a/board/ge/bx50v3/vpd_reader.h b/board/ge/common/vpd_reader.h
similarity index 100%
rename from board/ge/bx50v3/vpd_reader.h
rename to board/ge/common/vpd_reader.h
--
2.1.4
More information about the U-Boot
mailing list