pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/u-boot-ci20
Module Name: pkgsrc
Committed By: thorpej
Date: Sat Jun 20 17:46:28 UTC 2020
Added Files:
pkgsrc/sysutils/u-boot-ci20: DESCR Makefile PLIST distinfo
pkgsrc/sysutils/u-boot-ci20/files: installboot.plist
pkgsrc/sysutils/u-boot-ci20/patches: patch-arch_mips_config.mk
patch-include_image.h
Log Message:
U-boot package for the MIPS Creator CI20.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-ci20/DESCR \
pkgsrc/sysutils/u-boot-ci20/Makefile pkgsrc/sysutils/u-boot-ci20/PLIST \
pkgsrc/sysutils/u-boot-ci20/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-ci20/files/installboot.plist
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/u-boot-ci20/patches/patch-arch_mips_config.mk \
pkgsrc/sysutils/u-boot-ci20/patches/patch-include_image.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/sysutils/u-boot-ci20/DESCR
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/DESCR:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/DESCR Sat Jun 20 17:46:28 2020
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the MIPS Creator CI20.
Index: pkgsrc/sysutils/u-boot-ci20/Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/Makefile:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/Makefile Sat Jun 20 17:46:28 2020
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2020/06/20 17:46:28 thorpej Exp $
+
+UBOOT_TARGET= ci20
+UBOOT_CONFIG= ci20_mmc_defconfig
+UBOOT_BIN= u-boot-spl.bin u-boot-dtb.img
+
+UBOOT_INSTALLBOOT_PLIST= installboot.plist
+
+#PKGREVISION= 4
+
+UBOOT_VERSION= 2020.04
+
+DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-ci20/distinfo
+PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-ci20/patches
+DISTFILES= ${DEFAULT_DISTFILES}
+
+post-build:
+ cp ${WRKSRC}/spl/u-boot-spl.bin ${WRKSRC}/u-boot-spl.bin
+
+.include "../../sysutils/u-boot/u-boot-mipsel.mk"
Index: pkgsrc/sysutils/u-boot-ci20/PLIST
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/PLIST:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/PLIST Sat Jun 20 17:46:28 2020
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/20 17:46:28 thorpej Exp $
+share/u-boot/ci20/installboot.plist
+share/u-boot/ci20/u-boot-dtb.img
+share/u-boot/ci20/u-boot-spl.bin
Index: pkgsrc/sysutils/u-boot-ci20/distinfo
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/distinfo:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/distinfo Sat Jun 20 17:46:28 2020
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/06/20 17:46:28 thorpej Exp $
+
+SHA1 (u-boot-2020.04.tar.bz2) = 0821ce2dac9bbd9ec5883779ddad78b8610366e3
+RMD160 (u-boot-2020.04.tar.bz2) = 8f13836ea4d9d7235aa83f6b713b76e047ce27f1
+SHA512 (u-boot-2020.04.tar.bz2) = e04fe54883149123730605b084324ac0d1d72ce6913467bbe587a5a2675bcf7bb393405d9a446dc0c64ba42abc1e862ae5a132e9e51aa7390e2e9fce045af8d8
+Size (u-boot-2020.04.tar.bz2) = 15065656 bytes
+SHA1 (patch-arch_mips_config.mk) = 7b6500920b072269800be0e13109ac698575cfca
+SHA1 (patch-include_image.h) = 46f9efc0b9bbeea407e18f2b7e02b265dc0b58e1
Index: pkgsrc/sysutils/u-boot-ci20/files/installboot.plist
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/files/installboot.plist:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/files/installboot.plist Sat Jun 20 17:46:28 2020
@@ -0,0 +1,60 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2020/06/20 17:46:28 thorpej Exp $ -->
+<!--
+ Copyright (c) 2020 The NetBSD Foundation, Inc.
+ All rights reserved.
+
+ This code is derived from software contributed to The NetBSD Foundation
+ by Jason R. Thorpe.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+ <key>img,ci20</key>
+ <dict>
+ <key>description</key>
+ <string>MIPS Creator CI20</string>
+ <key>u-boot-install</key>
+ <array>
+ <dict>
+ <key>file-name</key>
+ <string>u-boot-spl.bin</string>
+ <key>image-offset</key>
+ <integer>512</integer>
+ </dict>
+ </array>
+ <array>
+ <dict>
+ <key>file-name</key>
+ <string>u-boot-dtb.img</string>
+ <key>image-offset</key>
+ <integer>14336</integer>
+ </dict>
+ </array>
+ <!--
+ Boot device must be partitioned with MBR, and the
+ first file system partition must start at least
+ 276480 bytes (270K) from the beginning of the image.
+ -->
+ </dict>
+</dict>
+</plist>
Index: pkgsrc/sysutils/u-boot-ci20/patches/patch-arch_mips_config.mk
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/patches/patch-arch_mips_config.mk:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/patches/patch-arch_mips_config.mk Sat Jun 20 17:46:28 2020
@@ -0,0 +1,22 @@
+$NetBSD: patch-arch_mips_config.mk,v 1.1 2020/06/20 17:46:28 thorpej Exp $
+
+Use the standard little-endian MIPS ELF target / emulation as supplied
+by cross-mipsel-none-elf-binutils.
+
+--- arch/mips/config.mk.orig 2020-06-20 13:56:22.000000000 +0000
++++ arch/mips/config.mk 2020-06-20 14:12:40.000000000 +0000
+@@ -13,10 +13,10 @@ PLATFORM_LDFLAGS += -EB
+ endif
+
+ ifdef CONFIG_SYS_LITTLE_ENDIAN
+-32bit-emul := elf32ltsmip
+-64bit-emul := elf64ltsmip
+-32bit-bfd := elf32-tradlittlemips
+-64bit-bfd := elf64-tradlittlemips
++32bit-emul := elf32elmip
++64bit-emul := elf64elmip
++32bit-bfd := elf32-littlemips
++64bit-bfd := elf64-littlemips
+ PLATFORM_CPPFLAGS += -EL
+ PLATFORM_LDFLAGS += -EL
+ endif
Index: pkgsrc/sysutils/u-boot-ci20/patches/patch-include_image.h
diff -u /dev/null pkgsrc/sysutils/u-boot-ci20/patches/patch-include_image.h:1.1
--- /dev/null Sat Jun 20 17:46:28 2020
+++ pkgsrc/sysutils/u-boot-ci20/patches/patch-include_image.h Sat Jun 20 17:46:28 2020
@@ -0,0 +1,37 @@
+$NetBSD: patch-include_image.h,v 1.1 2020/06/20 17:46:28 thorpej Exp $
+
+Ensure the correct byte order macros are used when image.h is included
+in a host tool.
+
+--- include/image.h.orig 2020-06-20 13:48:00.000000000 +0000
++++ include/image.h 2020-06-20 13:51:12.000000000 +0000
+@@ -16,7 +16,6 @@
+ #define __IMAGE_H__
+
+ #include "compiler.h"
+-#include <asm/byteorder.h>
+ #include <stdbool.h>
+
+ /* Define this to avoid #ifdefs later on */
+@@ -26,6 +25,13 @@ struct fdt_region;
+ #ifdef USE_HOSTCC
+ #include <sys/types.h>
+
++#include <endian.h>
++#if _BYTE_ORDER == _BIG_ENDIAN
++# include <linux/byteorder/big_endian.h>
++#else
++# include <linux/byteorder/little_endian.h>
++#endif
++
+ /* new uImage format support enabled on host */
+ #define IMAGE_ENABLE_FIT 1
+ #define IMAGE_ENABLE_OF_LIBFDT 1
+@@ -40,6 +46,7 @@ struct fdt_region;
+
+ #else
+
++#include <asm/byteorder.h>
+ #include <lmb.h>
+ #include <asm/u-boot.h>
+ #include <command.h>
Home |
Main Index |
Thread Index |
Old Index