[OpenWrt-Devel] [OpenWrt-Devel, 7/7] uboot-at91: bump linux4sam_5.8 to linux4sam_6.0
Sandeep Sheriker M
sandeep.sheriker at microchip.com
Tue May 28 13:21:19 EDT 2019
1.add support to build u-boot binaries for at91sam9x5ek socs.
2.removed sama5d27_som1_ek_spiflash defconfig & add QSPI defconfig.
3.removed sama5d27_som1_ek_mmc defconfig & mmc1 defconfig.
3.add patch to fix -Wformat-security warnings into errors insead of
editing cflags.
Signed-off-by: Sandeep Sheriker M <sandeep.sheriker at microchip.com>
---
package/boot/uboot-at91/Makefile | 25 +++++++++++++++-------
.../patches/001-fix-Wformat-security.patch | 13 +++++++++++
2 files changed, 30 insertions(+), 8 deletions(-)
create mode 100644 package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile
index a3262b5..547b72f 100644
--- a/package/boot/uboot-at91/Makefile
+++ b/package/boot/uboot-at91/Makefile
@@ -7,12 +7,12 @@
include $(TOPDIR)/rules.mk
-PKG_VERSION:=linux4sam_5.8
+PKG_VERSION:=linux4sam_6.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/linux4sam/u-boot-at91.git
-PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33
+PKG_SOURCE_VERSION:=1e7d2e5973c1fb780e55e28a801c6c574158ac14
include $(INCLUDE_DIR)/u-boot.mk
include $(INCLUDE_DIR)/package.mk
@@ -38,6 +38,14 @@ define U-Boot/at91sam9x5ek_nandflash
at91sam9x35ek
endef
+define U-Boot/at91sam9x5ek_mmc
+ NAME:=AT91SAM9X5-EK board (SDcard)
+ BUILD_SUBTARGET:=sam9x
+ BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \
+ at91sam9g35ek at91sam9x25ek \
+ at91sam9x35ek
+endef
+
define U-Boot/sama5d3_xplained_nandflash
NAME:=SAMA5D3 Xplained board (NandFlash)
BUILD_SUBTARGET:=sama5
@@ -80,13 +88,13 @@ define U-Boot/sama5d4_xplained_nandflash
BUILD_DEVICES:=at91-sama5d4_xplained
endef
-define U-Boot/sama5d27_som1_ek_mmc
- NAME:=SAMA5D27 SOM1 Ek (SDCard)
+define U-Boot/sama5d27_som1_ek_mmc1
+ NAME:=SAMA5D27 SOM1 Ek (SDCard1)
BUILD_SUBTARGET:=sama5
BUILD_DEVICES:=at91-sama5d27_som1_ek
endef
-define U-Boot/sama5d27_som1_ek_spiflash
+define U-Boot/sama5d27_som1_ek_qspiflash
NAME:=SAMA5D27 SOM1 Ek (QSPI Flash)
BUILD_SUBTARGET:=sama5
BUILD_DEVICES:=at91-sama5d27_som1_ek
@@ -107,6 +115,7 @@ endef
UBOOT_TARGETS := \
at91sam9m10g45ek_nandflash \
at91sam9x5ek_nandflash \
+ at91sam9x5ek_mmc \
sama5d3_xplained_nandflash \
sama5d3_xplained_mmc \
sama5d2_xplained_mmc \
@@ -114,15 +123,15 @@ UBOOT_TARGETS := \
sama5d4_xplained_mmc \
sama5d4_xplained_spiflash \
sama5d4_xplained_nandflash\
- sama5d27_som1_ek_mmc \
- sama5d27_som1_ek_spiflash \
+ sama5d27_som1_ek_mmc1 \
+ sama5d27_som1_ek_qspiflash \
sama5d2_ptc_ek_nandflash \
sama5d2_ptc_ek_mmc
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
CROSS_COMPILE=$(TARGET_CROSS) \
- DTC=$(LINUX_DIR)/scripts/dtc/dtc \
+ DTC=$(PKG_BUILD_DIR)/scripts/dtc/dtc \
KCFLAGS="$(filter-out -fstack-protector \
-mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft"
endef
diff --git a/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
new file mode 100644
index 0000000..18f9af7
--- /dev/null
+++ b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
@@ -0,0 +1,13 @@
+diff --git a/cmd/version.c b/cmd/version.c
+index b2fffe9..bcbbeb1 100644
+--- a/cmd/version.c
++++ b/cmd/version.c
+@@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+ {
+ char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
+
+- printf(display_options_get_banner(false, buf, sizeof(buf)));
++ printf("%s",display_options_get_banner(false, buf, sizeof(buf)));
+ #ifdef CC_VERSION_STRING
+ puts(CC_VERSION_STRING "\n");
+ #endif
--
2.7.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list