From 455a8e8a5284b039b3d9d67af4604cea816af300 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 25 Jan 2015 19:18:49 +0000 Subject: [PATCH] u-boot: Add loader for SolidRun's CuBox-i --- config/rootfiles/common/armv5tel/u-boot-imx6 | 3 + lfs/u-boot-imx6 | 86 ++++++++++++++++++++ make.sh | 1 + 3 files changed, 90 insertions(+) create mode 100644 config/rootfiles/common/armv5tel/u-boot-imx6 create mode 100644 lfs/u-boot-imx6 diff --git a/config/rootfiles/common/armv5tel/u-boot-imx6 b/config/rootfiles/common/armv5tel/u-boot-imx6 new file mode 100644 index 0000000000..d484e93782 --- /dev/null +++ b/config/rootfiles/common/armv5tel/u-boot-imx6 @@ -0,0 +1,3 @@ +usr/share/u-boot/cubox-i +usr/share/u-boot/cubox-i/SPL +usr/share/u-boot/cubox-i/u-boot.img diff --git a/lfs/u-boot-imx6 b/lfs/u-boot-imx6 new file mode 100644 index 0000000000..c635eea496 --- /dev/null +++ b/lfs/u-boot-imx6 @@ -0,0 +1,86 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2013 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = solidrun-imx6-e4bc4c3 + +THISAPP = u-boot-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +SUP_ARCH = armv5tel + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 9ca2ac0ae42359fe39de8f54f706d9f7 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +dist: + @$(PAK) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + + # Cubox + -mkdir -pv /usr/share/u-boot/cubox-i + cd $(DIR_APP) && make CROSS_COMPILE="" mx6_cubox-i_config + cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)" + cd $(DIR_APP) && install -v -m 644 SPL u-boot.img \ + /usr/share/u-boot/cubox-i + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 575380dbe1..d3c736aa3a 100755 --- a/make.sh +++ b/make.sh @@ -396,6 +396,7 @@ buildipfire() { ipfiremake rpi-firmware ipfiremake bc ipfiremake u-boot + ipfiremake u-boot-imx6 ipfiremake cpio ipfiremake mdadm ipfiremake dracut -- 2.39.5