diff options
author | Denys Dmytriyenko <denys@ti.com> | 2018-03-07 03:14:37 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-03-06 17:25:14 -0500 |
commit | 36d95e5fcbe2d73c0c001784ea734fe2e7a7b0aa (patch) | |
tree | c905e257dff9d616583f901e043be84ad8c693fd | |
parent | 2a380c63022302a7e1fa38dfa2d5230e70764ab9 (diff) | |
download | meta-ti-36d95e5fcbe2d73c0c001784ea734fe2e7a7b0aa.tar.gz |
u-boot-ti-staging: update to ti2018.00-rc1
Also remove AM3 SPL hack
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti-staging/0001-HACK-am335x-Work-around-file-expansion-macro.patch | 73 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb | 6 |
2 files changed, 2 insertions, 77 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti-staging/0001-HACK-am335x-Work-around-file-expansion-macro.patch b/recipes-bsp/u-boot/u-boot-ti-staging/0001-HACK-am335x-Work-around-file-expansion-macro.patch deleted file mode 100644 index a1502b26..00000000 --- a/recipes-bsp/u-boot/u-boot-ti-staging/0001-HACK-am335x-Work-around-file-expansion-macro.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | From 374035ab26df67968de5ecfc4983f68f9b0142e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dan Murphy <dmurphy@ti.com> | ||
3 | Date: Mon, 5 Mar 2018 14:37:24 -0600 | ||
4 | Subject: [PATCH] HACK: am335x: Work around file expansion macro | ||
5 | |||
6 | When building with the O= directive for AM335 and | ||
7 | an excessively long path name the build cannot fit into | ||
8 | the SPL region of the AM335. | ||
9 | |||
10 | The __FILE__ macro reports the full path of the file and | ||
11 | stores it in the data section of the image. | ||
12 | |||
13 | As a work around change the BUG() and WARN_ON macros for | ||
14 | the AM335 to only report the function and line number that | ||
15 | created the issue. For all other devices report the filename | ||
16 | as normal | ||
17 | |||
18 | Signed-off-by: Dan Murphy <dmurphy@ti.com> | ||
19 | --- | ||
20 | include/linux/bug.h | 21 +++++++++++++++++++-- | ||
21 | 1 file changed, 19 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/include/linux/bug.h b/include/linux/bug.h | ||
24 | index f07bb716fc..cf3f735dd6 100644 | ||
25 | --- a/include/linux/bug.h | ||
26 | +++ b/include/linux/bug.h | ||
27 | @@ -6,12 +6,26 @@ | ||
28 | #include <linux/compiler.h> | ||
29 | #include <linux/printk.h> | ||
30 | |||
31 | +#ifdef CONFIG_AM33XX | ||
32 | + | ||
33 | #define BUG() do { \ | ||
34 | - printk("BUG at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ | ||
35 | + printk("BUG in %s():%d!\n", __func__, __LINE__); \ | ||
36 | panic("BUG!"); \ | ||
37 | } while (0) | ||
38 | |||
39 | -#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ||
40 | +#define WARN_ON(condition) ({ \ | ||
41 | + int __ret_warn_on = !!(condition); \ | ||
42 | + if (unlikely(__ret_warn_on)) \ | ||
43 | + printk("WARNING in /%s():%d!\n", __func__, __LINE__); \ | ||
44 | + unlikely(__ret_warn_on); \ | ||
45 | +}) | ||
46 | + | ||
47 | +#else | ||
48 | + | ||
49 | +#define BUG() do { \ | ||
50 | + printk("BUG at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ | ||
51 | + panic("BUG!"); \ | ||
52 | +} while (0) | ||
53 | |||
54 | #define WARN_ON(condition) ({ \ | ||
55 | int __ret_warn_on = !!(condition); \ | ||
56 | @@ -19,6 +33,7 @@ | ||
57 | printk("WARNING at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ | ||
58 | unlikely(__ret_warn_on); \ | ||
59 | }) | ||
60 | +#endif /* _CONFIG_AM33XX */ | ||
61 | |||
62 | #define WARN_ON_ONCE(condition) ({ \ | ||
63 | static bool __warned; \ | ||
64 | @@ -31,4 +46,6 @@ | ||
65 | unlikely(__ret_warn_once); \ | ||
66 | }) | ||
67 | |||
68 | +#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ||
69 | + | ||
70 | #endif /* _LINUX_BUG_H */ | ||
71 | -- | ||
72 | 2.16.1.194.gb2e45c695 | ||
73 | |||
diff --git a/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb b/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb index 01a71d9f..c820feb4 100644 --- a/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb +++ b/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb | |||
@@ -1,9 +1,7 @@ | |||
1 | require u-boot-ti.inc | 1 | require u-boot-ti.inc |
2 | 2 | ||
3 | PR = "r1" | 3 | PR = "r2" |
4 | 4 | ||
5 | BRANCH = "ti-u-boot-2018.01" | 5 | BRANCH = "ti-u-boot-2018.01" |
6 | 6 | ||
7 | SRCREV = "240ae44c5535bb7a2b6553813f5c42a4a1c5772a" | 7 | SRCREV = "7ae3421850d555f3d9397390f39bcb22e64a5147" |
8 | |||
9 | SRC_URI_append_ti33x = " file://0001-HACK-am335x-Work-around-file-expansion-macro.patch" | ||