-# HOST_ARCH platform target
+# HOST_ARCH platform targets
# --------------------------------------------
-armv5tel dockstar u-boot.kwb
-# Dreamplug is not supported by this version of uboot.
-#armv5tel dreamplug u-boot.kwb
-armv5tel guruplug u-boot.kwb
-armv5tel openrd_ultimate u-boot.kwb
-armv5tel sheevaplug u-boot.kwb
-armv7hl efikamx u-boot.imx
-armv7hl igep0020 u-boot.bin
-armv7hl omap3_beagle u-boot.bin
-armv7hl omap4_panda u-boot.bin
+armv5tel dreamplug u-boot.bin
+armv7hl omap4_panda u-boot.bin u-boot.img
###############################################################################
name = u-boot
-version = 2011.09
+version = 2012.10
release = 1
sup_arches = armv5tel armv7hl
build
build
- while read arch platform target; do
+ while read arch platform targets; do
# Skip all other architectures.
[ "${arch}" = "%{DISTRO_ARCH}" ] || continue
builddir="$(pwd)/build-${platform}"
mkdir -p ${builddir}
- make O=${builddir} ${platform}_config
- make O=${builddir} ${builddir}/${target}
+ make CROSS_COMPILE="" O=${builddir} ${platform}_config
+ make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" O=${builddir}
done < %{DIR_SOURCE}/targets
# Build tools.
end
install
- while read arch platform target; do
+ while read arch platform targets; do
# Skip all other architectures.
[ "${arch}" = "%{DISTRO_ARCH}" ] || continue
installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
mkdir -pv ${installdir}
- install -D -m 644 ${builddir}/${target} ${installdir}
- install -D -m 644 ${builddir}/u-boot ${installdir}/uboot.elf
+ for target in ${targets}; do
+ install -D -m 644 ${builddir}/${target} ${installdir}
+ done
+ if [ -e "${builddir}/MLO" ]; then
+ install -D -m 644 ${builddir}/MLO ${installdir}
+ fi
+ for f in ${builddir}/spl/*.bin; do
+ [ -e "${f}" ] || continue
+ install -D -m 644 ${f} ${installdir}
+ done
done < %{DIR_SOURCE}/targets
# Install tools.