Add generic distro support to RIoT board, Add patch to stabilise BananaPi network, Spec cleanups
This commit is contained in:
parent
fc2c24e784
commit
85e3a95fa6
87
riotboard-port-to-generic-distro-booting.patch
Normal file
87
riotboard-port-to-generic-distro-booting.patch
Normal file
@ -0,0 +1,87 @@
|
||||
--- u-boot-2014.10-rc2/include/configs/embestmx6boards.h.orig 2014-09-29 12:37:12.391839941 +0100
|
||||
+++ u-boot-2014.10-rc2/include/configs/embestmx6boards.h 2014-09-29 14:30:35.763497826 +0100
|
||||
@@ -22,7 +22,7 @@
|
||||
#define CONFIG_SYS_GENERIC_BOARD
|
||||
|
||||
#define CONFIG_MXC_UART_BASE UART2_BASE
|
||||
-#define CONFIG_CONSOLE_DEV "ttymxc1"
|
||||
+#define CONFIG_CONSOLE_DEV "ttymxc1,115200"
|
||||
#define CONFIG_MMCROOT "/dev/mmcblk1p2"
|
||||
|
||||
#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
|
||||
@@ -78,14 +78,7 @@
|
||||
#define CONFIG_CMD_MMC
|
||||
#define CONFIG_GENERIC_MMC
|
||||
#define CONFIG_BOUNCE_BUFFER
|
||||
-#define CONFIG_CMD_EXT2
|
||||
-#define CONFIG_CMD_FAT
|
||||
-#define CONFIG_DOS_PARTITION
|
||||
-
|
||||
-#define CONFIG_CMD_PING
|
||||
-#define CONFIG_CMD_DHCP
|
||||
-#define CONFIG_CMD_MII
|
||||
-#define CONFIG_CMD_NET
|
||||
+
|
||||
#define CONFIG_FEC_MXC
|
||||
#define CONFIG_MII
|
||||
#define IMX_FEC_BASE ENET_BASE_ADDR
|
||||
@@ -120,8 +113,6 @@
|
||||
#define CONFIG_CMD_SETEXPR
|
||||
#undef CONFIG_CMD_IMLS
|
||||
|
||||
-#define CONFIG_BOOTDELAY 1
|
||||
-
|
||||
#define CONFIG_LOADADDR 0x12000000
|
||||
#define CONFIG_SYS_TEXT_BASE 0x17800000
|
||||
|
||||
@@ -163,16 +154,29 @@
|
||||
#define SF_ENV ""
|
||||
#endif
|
||||
|
||||
+#ifndef CONFIG_SPL_BUILD
|
||||
+#include <config_distro_defaults.h>
|
||||
+#include <config_distro_bootcmd.h>
|
||||
+
|
||||
+#define BOOT_TARGET_DEVICES(func) \
|
||||
+ func(MMC, mmc, 0) \
|
||||
+ func(PXE, pxe, na) \
|
||||
+ func(DHCP, dhcp, na)
|
||||
+
|
||||
+
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"script=boot.scr\0" \
|
||||
"image=zImage\0" \
|
||||
- "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
||||
- "fdt_addr=0x18000000\0" \
|
||||
+ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
||||
+ "fdt_addr_r=0x18000000\0" \
|
||||
"boot_fdt=try\0" \
|
||||
+ "pxefile_addr_r=0x17f00000\0" \
|
||||
+ "scriptaddr=0x17e00000\0" \
|
||||
+ "kernel_addr_r=0x11000000\0" \
|
||||
+ "ramdisk_addr_r=0x18100000\0" \
|
||||
+ "bootm_size=0x20000000\0" \
|
||||
"ip_dyn=yes\0" \
|
||||
"console=" CONFIG_CONSOLE_DEV "\0" \
|
||||
- "fdt_high=0xffffffff\0" \
|
||||
- "initrd_high=0xffffffff\0" \
|
||||
"mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
|
||||
"mmcpart=1\0" \
|
||||
"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
|
||||
@@ -252,6 +256,10 @@
|
||||
"fi; " \
|
||||
"else run netboot; fi"
|
||||
|
||||
+#else
|
||||
+#define BOOT_TARGET_DEVICES
|
||||
+#endif
|
||||
+
|
||||
#define CONFIG_ARP_TIMEOUT 200UL
|
||||
|
||||
/* Miscellaneous configurable options */
|
||||
@@ -335,4 +343,5 @@
|
||||
#define CONFIG_IMX_HDMI
|
||||
#define CONFIG_IMX_VIDEO_SKIP
|
||||
|
||||
+
|
||||
#endif /* __RIOTBOARD_CONFIG_H */
|
35
sun7i-bananapi-fixGmac.patch
Normal file
35
sun7i-bananapi-fixGmac.patch
Normal file
@ -0,0 +1,35 @@
|
||||
In order for the gmac nic to work reliable on the Bananapi, we need to poke
|
||||
these 2 undocumented bits in the gmac clk register. Since these are
|
||||
undocumented, this commit only sets these bits on the Bananapi for now.
|
||||
|
||||
I'll contact Allwinner to try and get these bits documented, once they
|
||||
are documented we can hopefully replace this hack with a better patch.
|
||||
|
||||
Reported-by: Karsten Merker <merker at debian.org>
|
||||
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
|
||||
---
|
||||
board/sunxi/gmac.c | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/board/sunxi/gmac.c b/board/sunxi/gmac.c
|
||||
index e7ff952..f58c963 100644
|
||||
--- a/board/sunxi/gmac.c
|
||||
+++ b/board/sunxi/gmac.c
|
||||
@@ -24,6 +24,15 @@ int sunxi_gmac_initialize(bd_t *bis)
|
||||
CCM_GMAC_CTRL_GPIT_MII);
|
||||
#endif
|
||||
|
||||
+ /*
|
||||
+ * HdG: this is necessary to get GMAC to work reliable on the
|
||||
+ * Bananapi. We don't know what these undocumented bits do, so this
|
||||
+ * is a Bananapi specific hack for now.
|
||||
+ */
|
||||
+#ifdef CONFIG_BANANAPI
|
||||
+ setbits_le32(&ccm->gmac_clk_cfg, 0x3 << 10);
|
||||
+#endif
|
||||
+
|
||||
/* Configure pin mux settings for GMAC */
|
||||
for (pin = SUNXI_GPA(0); pin <= SUNXI_GPA(16); pin++) {
|
||||
#ifdef CONFIG_RGMII
|
||||
--
|
||||
2.1.0
|
278
uboot-tools.spec
278
uboot-tools.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: uboot-tools
|
||||
Version: 2014.10
|
||||
Release: 0.3%{?candidate:.%{candidate}}%{?dist}
|
||||
Release: 0.4%{?candidate:.%{candidate}}%{?dist}
|
||||
Summary: U-Boot utilities
|
||||
|
||||
Group: Development/Tools
|
||||
@ -13,6 +13,9 @@ Source1: uEnv.txt
|
||||
Patch1: u-boot-fat.patch
|
||||
|
||||
Patch10: 0001-wandboard-port-to-generic-distro-booting.patch
|
||||
Patch11: riotboard-port-to-generic-distro-booting.patch
|
||||
# http://lists.denx.de/pipermail/u-boot/2014-September/190052.html
|
||||
Patch12: sun7i-bananapi-fixGmac.patch
|
||||
|
||||
BuildRequires: dtc, openssl-devel
|
||||
BuildRequires: fedora-logos, netpbm-progs
|
||||
@ -76,7 +79,9 @@ u-boot bootloader binaries for armv7 boards
|
||||
%setup -q -n u-boot-%{version}%{?candidate:-%{candidate}}
|
||||
%patch1 -p1
|
||||
|
||||
%patch10 -p1
|
||||
%patch10 -p1 -b .wand
|
||||
%patch11 -p1 -b .riot
|
||||
%patch12 -p1 -b .BPgmac
|
||||
|
||||
mkdir builds
|
||||
# convert fedora logo to bmp for use in u-boot
|
||||
@ -98,27 +103,10 @@ make mrproper
|
||||
%endif
|
||||
|
||||
%ifarch %{arm}
|
||||
make am335x_evm_config
|
||||
# AllWinner devices
|
||||
make Bananapi_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p MLO builds/MLO.beaglebone
|
||||
cp -p u-boot.img builds/u-boot.img.beaglebone
|
||||
make mrproper
|
||||
|
||||
make omap3_beagle_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p MLO builds/MLO.beagle
|
||||
cp -p u-boot.img builds/u-boot.img.beagle
|
||||
make mrproper
|
||||
|
||||
make arndale_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p spl/arndale-spl.bin builds/arndale-spl.bin.arndale
|
||||
cp -p u-boot-dtb.bin builds/u-boot-dtb.bin.arndale
|
||||
make mrproper
|
||||
|
||||
make Cubietruck_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Cubietruck
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Bananapi
|
||||
make mrproper
|
||||
|
||||
make Cubieboard_defconfig
|
||||
@ -131,21 +119,60 @@ make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Cubieboard2
|
||||
make mrproper
|
||||
|
||||
make Cubietruck_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Cubietruck
|
||||
make mrproper
|
||||
|
||||
make Mele_A1000G_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Mele_A1000G
|
||||
make mrproper
|
||||
|
||||
make Mele_A1000_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Mele_A1000
|
||||
make mrproper
|
||||
|
||||
# Calxeda
|
||||
make highbank_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.bin builds/u-boot.bin.highbank
|
||||
make mrproper
|
||||
|
||||
make omap4_panda_config
|
||||
# Freescale i.MX6
|
||||
make riotboard_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p MLO builds/MLO.panda
|
||||
cp -p u-boot.img builds/u-boot.img.panda
|
||||
cp -p u-boot.imx builds/u-boot.imx.riotboard
|
||||
make mrproper
|
||||
|
||||
make origen_config
|
||||
make udoo_quad_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p spl/origen-spl.bin builds/origen-spl.bin.origen
|
||||
cp -p u-boot.bin builds/u-boot.bin.origen
|
||||
cp -p u-boot.imx builds/u-boot.imx.udoo_quad
|
||||
make mrproper
|
||||
|
||||
make wandboard_dl_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wandboard_dl
|
||||
make mrproper
|
||||
|
||||
make wandboard_quad_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wandboard_quad
|
||||
make mrproper
|
||||
|
||||
make wandboard_solo_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wandboard_solo
|
||||
make mrproper
|
||||
|
||||
# NVidia Tegra devices
|
||||
make jetson-tk1_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-dtb-tegra.bin builds/u-boot-dtb-tegra.bin.jetson-tk1
|
||||
cp -p u-boot-nodtb-tegra.bin builds/u-boot-nodtb-tegra.bin.jetson-tk1
|
||||
cp -p u-boot.map builds/u-boot.map.jetson-tk1
|
||||
cp -p u-boot.dtb builds/u-boot.dtb.jetson-tk1
|
||||
make mrproper
|
||||
|
||||
make paz00_config
|
||||
@ -156,6 +183,27 @@ cp -p u-boot.map builds/u-boot.map.paz00
|
||||
cp -p u-boot.dtb builds/u-boot.dtb.paz00
|
||||
make mrproper
|
||||
|
||||
make trimslice_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-dtb-tegra.bin builds/u-boot-dtb-tegra.bin.trimslice
|
||||
cp -p u-boot-nodtb-tegra.bin builds/u-boot-nodtb-tegra.bin.trimslice
|
||||
cp -p u-boot.map builds/u-boot.map.trimslice
|
||||
cp -p u-boot.dtb builds/u-boot.dtb.trimslice
|
||||
make mrproper
|
||||
|
||||
# Samsung Exynos devices
|
||||
make arndale_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p spl/arndale-spl.bin builds/arndale-spl.bin.arndale
|
||||
cp -p u-boot-dtb.bin builds/u-boot-dtb.bin.arndale
|
||||
make mrproper
|
||||
|
||||
make origen_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p spl/origen-spl.bin builds/origen-spl.bin.origen
|
||||
cp -p u-boot.bin builds/u-boot.bin.origen
|
||||
make mrproper
|
||||
|
||||
make smdkv310_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p spl/smdkv310-spl.bin builds/smdkv310-spl.bin.smdkv310
|
||||
@ -167,50 +215,29 @@ make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-dtb.bin builds/u-boot-dtb.bin.snow
|
||||
make mrproper
|
||||
|
||||
# ST Erikson
|
||||
make snowball_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.bin builds/u-boot.bin.snowball
|
||||
make mrproper
|
||||
|
||||
make jetson-tk1_defconfig
|
||||
# TI devices
|
||||
make am335x_evm_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-dtb-tegra.bin builds/u-boot-dtb-tegra.bin.jetson-tk1
|
||||
cp -p u-boot-nodtb-tegra.bin builds/u-boot-nodtb-tegra.bin.jetson-tk1
|
||||
cp -p u-boot.map builds/u-boot.map.jetson-tk1
|
||||
cp -p u-boot.dtb builds/u-boot.dtb.jetson-tk1
|
||||
cp -p MLO builds/MLO.beaglebone
|
||||
cp -p u-boot.img builds/u-boot.img.beaglebone
|
||||
make mrproper
|
||||
|
||||
make trimslice_config
|
||||
make omap3_beagle_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-dtb-tegra.bin builds/u-boot-dtb-tegra.bin.trimslice
|
||||
cp -p u-boot-nodtb-tegra.bin builds/u-boot-nodtb-tegra.bin.trimslice
|
||||
cp -p u-boot.map builds/u-boot.map.trimslice
|
||||
cp -p u-boot.dtb builds/u-boot.dtb.trimslice
|
||||
cp -p MLO builds/MLO.beagle
|
||||
cp -p u-boot.img builds/u-boot.img.beagle
|
||||
make mrproper
|
||||
|
||||
make wandboard_dl_config
|
||||
make omap4_panda_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wbdl
|
||||
make mrproper
|
||||
|
||||
make wandboard_quad_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wbquad
|
||||
make mrproper
|
||||
|
||||
make udoo_quad_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.udoo_quad
|
||||
make mrproper
|
||||
|
||||
make wandboard_solo_config
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.wbsolo
|
||||
make mrproper
|
||||
|
||||
make riotboard_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot.imx builds/u-boot.imx.riotboard
|
||||
cp -p MLO builds/MLO.panda
|
||||
cp -p u-boot.img builds/u-boot.img.panda
|
||||
make mrproper
|
||||
|
||||
make omap5_uevm_config
|
||||
@ -219,21 +246,6 @@ cp -p MLO builds/MLO.uevm
|
||||
cp -p u-boot.img builds/u-boot.img.uevm
|
||||
make mrproper
|
||||
|
||||
make Bananapi_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Bananapi
|
||||
make mrproper
|
||||
|
||||
make Mele_A1000G_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Mele_A1000G
|
||||
make mrproper
|
||||
|
||||
make Mele_A1000_defconfig
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1
|
||||
cp -p u-boot-sunxi-with-spl.bin builds/u-boot-sunxi-with-spl.bin.Mele_A1000
|
||||
make mrproper
|
||||
|
||||
%endif
|
||||
|
||||
make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" defconfig V=1
|
||||
@ -258,38 +270,57 @@ install -p -m 0644 builds/u-boot.bin.vexpress_aemv8a $RPM_BUILD_ROOT%{_datadir}/
|
||||
|
||||
%ifarch %{arm}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/arndale/
|
||||
# ARM Vexpress
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/vexpress/
|
||||
|
||||
# AllWinner
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Bananapi/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/beagle/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/beaglebone/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Cubietruck/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Cubieboard/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Cubieboard2/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/highbank/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/jetson-tk1/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Cubietruck/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Mele_A1000/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/Mele_A1000G/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/origen/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/panda/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/paz00/
|
||||
# Calxeda
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/highbank/
|
||||
# FreeScale
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/riotboard/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/snow/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/snowball/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/smdkv310/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/trimslice/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/udoo_quad/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_dl/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_quad/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_solo/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/udoo_quad/
|
||||
# NVidia
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/jetson-tk1/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/paz00/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/trimslice/
|
||||
# Samsung
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/arndale/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/origen/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/smdkv310/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/snow/
|
||||
# STE
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/snowball/
|
||||
# TI
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/beagle/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/beaglebone/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/panda/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/uevm/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/vexpress/
|
||||
|
||||
for board in beaglebone beagle panda uevm
|
||||
# AllWinner
|
||||
for board in Bananapi Cubieboard Cubieboard2 Cubietruck Mele_A1000 Mele_A1000G
|
||||
do
|
||||
install -p -m 0644 builds/u-boot.img.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.img
|
||||
install -p -m 0644 builds/MLO.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/MLO
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot-sunxi-with-spl.bin
|
||||
done
|
||||
|
||||
# Calxeda
|
||||
install -p -m 0644 builds/u-boot.bin.highbank $RPM_BUILD_ROOT%{_datadir}/uboot/highbank/u-boot.bin
|
||||
|
||||
# FreeScale
|
||||
for board in riotboard udoo_quad wandboard_dl wandboard_quad wandboard_solo
|
||||
do
|
||||
install -p -m 0644 builds/u-boot.imx.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.imx
|
||||
done
|
||||
|
||||
# NVidia
|
||||
for board in paz00 trimslice jetson-tk1
|
||||
do
|
||||
install -p -m 0644 builds/u-boot-nodtb-tegra.bin.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot-nodtb-tegra.bin
|
||||
@ -298,18 +329,10 @@ install -p -m 0644 builds/u-boot.map.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/u
|
||||
install -p -m 0644 builds/u-boot.dtb.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.dtb
|
||||
done
|
||||
|
||||
# Samsung
|
||||
install -p -m 0644 builds/arndale-spl.bin.arndale $RPM_BUILD_ROOT%{_datadir}/uboot/arndale/arndale-spl.bin
|
||||
install -p -m 0644 builds/u-boot-dtb.bin.arndale $RPM_BUILD_ROOT%{_datadir}/uboot/arndale/u-boot-dtb.bin
|
||||
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Bananapi $RPM_BUILD_ROOT%{_datadir}/uboot/Bananapi/u-boot-sunxi-with-spl.bin
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Cubieboard $RPM_BUILD_ROOT%{_datadir}/uboot/Cubieboard/u-boot-sunxi-with-spl.bin
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Cubieboard2 $RPM_BUILD_ROOT%{_datadir}/uboot/Cubieboard2/u-boot-sunxi-with-spl.bin
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Cubietruck $RPM_BUILD_ROOT%{_datadir}/uboot/Cubietruck/u-boot-sunxi-with-spl.bin
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Mele_A1000 $RPM_BUILD_ROOT%{_datadir}/uboot/Mele_A1000/u-boot-sunxi-with-spl.bin
|
||||
install -p -m 0644 builds/u-boot-sunxi-with-spl.bin.Mele_A1000G $RPM_BUILD_ROOT%{_datadir}/uboot/Mele_A1000G/u-boot-sunxi-with-spl.bin
|
||||
|
||||
install -p -m 0644 builds/u-boot.bin.highbank $RPM_BUILD_ROOT%{_datadir}/uboot/highbank/u-boot.bin
|
||||
|
||||
install -p -m 0644 builds/origen-spl.bin.origen $RPM_BUILD_ROOT%{_datadir}/uboot/origen/origen-spl.bin
|
||||
install -p -m 0644 builds/u-boot.bin.origen $RPM_BUILD_ROOT%{_datadir}/uboot/origen/u-boot.bin
|
||||
|
||||
@ -317,14 +340,17 @@ install -p -m 0644 builds/smdkv310-spl.bin.smdkv310 $RPM_BUILD_ROOT%{_datadir}/u
|
||||
install -p -m 0644 builds/u-boot.bin.smdkv310 $RPM_BUILD_ROOT%{_datadir}/uboot/smdkv310/u-boot.bin
|
||||
|
||||
install -p -m 0644 builds/u-boot-dtb.bin.snow $RPM_BUILD_ROOT%{_datadir}/uboot/snow/u-boot-dtb.bin
|
||||
|
||||
# STE
|
||||
install -p -m 0644 builds/u-boot.bin.snowball $RPM_BUILD_ROOT%{_datadir}/uboot/snowball/u-boot.bin
|
||||
|
||||
install -p -m 0644 builds/u-boot.imx.riotboard $RPM_BUILD_ROOT%{_datadir}/uboot/riotboard/u-boot.imx
|
||||
install -p -m 0644 builds/u-boot.imx.udoo_quad $RPM_BUILD_ROOT%{_datadir}/uboot/udoo_quad/u-boot.imx
|
||||
# TI
|
||||
for board in beaglebone beagle panda uevm
|
||||
do
|
||||
install -p -m 0644 builds/u-boot.img.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.img
|
||||
install -p -m 0644 builds/MLO.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/MLO
|
||||
done
|
||||
|
||||
install -p -m 0644 builds/u-boot.imx.wbdl $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_dl/u-boot.imx
|
||||
install -p -m 0644 builds/u-boot.imx.wbquad $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_quad/u-boot.imx
|
||||
install -p -m 0644 builds/u-boot.imx.wbsolo $RPM_BUILD_ROOT%{_datadir}/uboot/wandboard_solo/u-boot.imx
|
||||
%endif
|
||||
|
||||
install -p -m 0755 tools/mkimage $RPM_BUILD_ROOT%{_bindir}
|
||||
@ -341,8 +367,6 @@ install -p -m 0755 tools/env/fw_printenv $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%doc README doc/README.imximage doc/README.kwbimage doc/uImage.FIT
|
||||
@ -368,33 +392,45 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%ifarch %{arm}
|
||||
%files -n uboot-images-armv7
|
||||
%{_datadir}/uboot/arndale/
|
||||
# AllWinner
|
||||
%{_datadir}/uboot/Bananapi/
|
||||
%{_datadir}/uboot/beagle/
|
||||
%{_datadir}/uboot/beaglebone/
|
||||
%{_datadir}/uboot/Cubieboard/
|
||||
%{_datadir}/uboot/Cubieboard2/
|
||||
%{_datadir}/uboot/Cubietruck/
|
||||
%{_datadir}/uboot/highbank/
|
||||
%{_datadir}/uboot/jetson-tk1/
|
||||
%{_datadir}/uboot/Mele_A1000/
|
||||
%{_datadir}/uboot/Mele_A1000G/
|
||||
%{_datadir}/uboot/origen/
|
||||
%{_datadir}/uboot/panda/
|
||||
%{_datadir}/uboot/paz00/
|
||||
# Calxeda
|
||||
%{_datadir}/uboot/highbank/
|
||||
# FreeScale
|
||||
%{_datadir}/uboot/riotboard/
|
||||
%{_datadir}/uboot/snow/
|
||||
%{_datadir}/uboot/snowball/
|
||||
%{_datadir}/uboot/smdkv310/
|
||||
%{_datadir}/uboot/trimslice/
|
||||
%{_datadir}/uboot/wandboard_dl/
|
||||
%{_datadir}/uboot/wandboard_quad/
|
||||
%{_datadir}/uboot/wandboard_solo/
|
||||
%{_datadir}/uboot/udoo_quad/
|
||||
# NVidia
|
||||
%{_datadir}/uboot/jetson-tk1/
|
||||
%{_datadir}/uboot/paz00/
|
||||
%{_datadir}/uboot/trimslice/
|
||||
# Samsung
|
||||
%{_datadir}/uboot/arndale/
|
||||
%{_datadir}/uboot/smdkv310/
|
||||
%{_datadir}/uboot/snow/
|
||||
# STE
|
||||
%{_datadir}/uboot/snowball/
|
||||
# TI
|
||||
%{_datadir}/uboot/beagle/
|
||||
%{_datadir}/uboot/beaglebone/
|
||||
%{_datadir}/uboot/origen/
|
||||
%{_datadir}/uboot/panda/
|
||||
%{_datadir}/uboot/uevm/
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Sep 29 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2014.10-0.4.rc2
|
||||
- Add generic distro support to RIoT board
|
||||
- Add patch to stabilise BananaPi network
|
||||
- Spec cleanups
|
||||
|
||||
* Fri Sep 19 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2014.10-0.3.rc2
|
||||
- Add Jetson K1, RIoT Board
|
||||
- Minor spec cleanups
|
||||
|
Loading…
Reference in New Issue
Block a user