pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/u-boot-jetson-nano



Module Name:    pkgsrc
Committed By:   thorpej
Date:           Sat Jun 20 22:29:12 UTC 2020

Added Files:
        pkgsrc/sysutils/u-boot-jetson-nano: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/u-boot-jetson-nano/patches: patch-include_image.h

Log Message:
U-boot package for the NVIDIA Jetson Nano.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-jetson-nano/DESCR \
    pkgsrc/sysutils/u-boot-jetson-nano/Makefile \
    pkgsrc/sysutils/u-boot-jetson-nano/PLIST \
    pkgsrc/sysutils/u-boot-jetson-nano/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/u-boot-jetson-nano/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-jetson-nano/DESCR
diff -u /dev/null pkgsrc/sysutils/u-boot-jetson-nano/DESCR:1.1
--- /dev/null   Sat Jun 20 22:29:12 2020
+++ pkgsrc/sysutils/u-boot-jetson-nano/DESCR    Sat Jun 20 22:29:12 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 NVIDIA Jetson Nano.
Index: pkgsrc/sysutils/u-boot-jetson-nano/Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot-jetson-nano/Makefile:1.1
--- /dev/null   Sat Jun 20 22:29:12 2020
+++ pkgsrc/sysutils/u-boot-jetson-nano/Makefile Sat Jun 20 22:29:12 2020
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2020/06/20 22:29:12 thorpej Exp $
+
+UBOOT_TARGET=          jetson-nano
+UBOOT_CONFIG=          p3450-0000_defconfig
+UBOOT_BIN=             u-boot u-boot-dtb.bin
+
+UBOOT_VERSION=         2020.04
+
+DISTINFO_FILE=         ${.CURDIR}/../../sysutils/u-boot-jetson-nano/distinfo
+PATCHDIR=              ${.CURDIR}/../../sysutils/u-boot-jetson-nano/patches
+DISTFILES=             ${DEFAULT_DISTFILES}
+
+# This could be moved to u-boot.mk as long as we don't have support for
+# any imx8 boards.
+CHECK_PORTABILITY_SKIP+=       tools/imx8m_image.sh
+
+# Switch to EL1 before booting kernel (required for 32-bit support)
+PKG_DEFAULT_OPTIONS+=  el1
+
+.include "../../sysutils/u-boot/u-boot-arm64.mk"
Index: pkgsrc/sysutils/u-boot-jetson-nano/PLIST
diff -u /dev/null pkgsrc/sysutils/u-boot-jetson-nano/PLIST:1.1
--- /dev/null   Sat Jun 20 22:29:12 2020
+++ pkgsrc/sysutils/u-boot-jetson-nano/PLIST    Sat Jun 20 22:29:12 2020
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/20 22:29:12 thorpej Exp $
+share/u-boot/jetson-nano/u-boot
+share/u-boot/jetson-nano/u-boot-dtb.bin
Index: pkgsrc/sysutils/u-boot-jetson-nano/distinfo
diff -u /dev/null pkgsrc/sysutils/u-boot-jetson-nano/distinfo:1.1
--- /dev/null   Sat Jun 20 22:29:12 2020
+++ pkgsrc/sysutils/u-boot-jetson-nano/distinfo Sat Jun 20 22:29:12 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/06/20 22:29:12 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-include_image.h) = 46f9efc0b9bbeea407e18f2b7e02b265dc0b58e1

Index: pkgsrc/sysutils/u-boot-jetson-nano/patches/patch-include_image.h
diff -u /dev/null pkgsrc/sysutils/u-boot-jetson-nano/patches/patch-include_image.h:1.1
--- /dev/null   Sat Jun 20 22:29:12 2020
+++ pkgsrc/sysutils/u-boot-jetson-nano/patches/patch-include_image.h    Sat Jun 20 22:29:12 2020
@@ -0,0 +1,37 @@
+$NetBSD: patch-include_image.h,v 1.1 2020/06/20 22:29:12 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