aboutsummaryrefslogtreecommitdiff
path: root/release/arm
Commit message (Collapse)AuthorAgeFilesLines
* Set a static revision of the Crochet checkout to avoidGlen Barber2014-09-165-5/+5
| | | | | | | | | | | | surprise build failures. MFC after: 3 days X-10.1-MFC: yes X-MFC-With: r271676, r271677 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=271678
* Catch up with Crochet changes to fix the WANDBOARD-QUADGlen Barber2014-09-161-2/+2
| | | | | | | | | | | | | build. Tested on: stable/10@r271618 MFC after: 3 days X-10.1-MFC: yes X-MFC-With: r271676 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=271677
* Catch up with Crochet changes to fix the BEAGLEBONEGlen Barber2014-09-161-2/+2
| | | | | | | | | | | | build. Tested on: stable/10@r271618 MFC after: 3 days X-10.1-MFC: yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=271676
* Also export UNAME_r to fix arm builds.Glen Barber2014-08-231-0/+4
| | | | | | | | | MFC after: 3 days X-MFC-with: r270417 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=270418
* Fix arm build breakage when building stable/10 onGlen Barber2014-08-231-0/+4
| | | | | | | | | | head/. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=270417
* In arm/release.sh, continue if 'xdev-links' target failsGlen Barber2014-08-111-1/+1
| | | | | | | | | | where the target is not valid (stable/10), instead of doing per-branch evaluation on if xdev-links needs to be invoked. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=269816
* Merge the following from ^/projects/release-noxdev:Glen Barber2014-08-066-117/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r269549, r269551, r269552, r269553, r269554, r269555, r269558, r269559, r269560, r269561, r269628, r269629, r269630, r269635, r269637: r269549: Create a new project branch, release-noxdev, for a sandbox workspace outside of head/ to update the release bits for arm builds since the deprecation of the XDEV and XDEV_ARCH make(1) variables. r269551: Define load_chroot_env() and load_target_env() prototypes. r269552: Call load_chroot_env() and load_target_env() where they can be mutually conflicting with regard to TARGET, TARGET_ARCH, XDEV, and XDEV_ARCH. r269553: Add shebang line to arm/*.conf files since these should be considered to be executable (albeit not on their own) shell scripts. r269554: Redefine load_chroot_env() and load_target_env() in the arm/*.conf files, and reindent. r269555: Simplify where load_chroot_env() and load_target_env() are called. r269558: Provide example in release.conf.sample for overriding the load_chroot_env() and load_target_env() prototypes. r269559: Remove a gratuitous newline. r269560: Unset potentially conflicting variables in load_chroot_env() and load_target_env(). r269561: Make global variables global, and accessible outside of the functions within which they were once defined. r269628: Remove XDEV/XDEV_ARCH evaluation if EMBEDDEDBUILD is set. r269629: In arm/release.sh, switch TARGET/TARGET_ARCH back to the original XDEV/XDEV_ARCH make(1) variables. In theory, this should have been a no-op, but the TARGET and TARGET_ARCH are now unset in load_target_env() to avoid collision with the chroot userland. r269630: Export variables in the arm/*.conf files because they need to be passed through release.sh to arm/release.sh. Set MK_TESTS=no for the xdev target. r269635: As part of the XDEV/XDEV_ARCH deprecation, the 'xdev-links' target was intentionally no longer invoked automatically. Invoke the xdev-links target after xdev, which creates, for example, /usr/bin/armv6-freebsd-cc symlink to /usr/armv6-freebsd/usr/bin/cc. r269637: Set TARGET and TARGET_ARCH to the XDEV and XDEV_ARCH counterparts for the xdev and xdev-links make(1) targets. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=269639
* Fake out the deprecation of XDEV and XDEV_ARCH byGlen Barber2014-07-231-1/+1
| | | | | | | | | | | continuing to use the variables in the configuration file, but switch XDEV= and XDEV_ARCH= to TARGET= and TARGET_ARCH= appropriately. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=269033
* The u-boot tarball needed for some boards, BEAGLEBONE forGlen Barber2014-07-031-0/+3
| | | | | | | | | | | | | | | | | | example, explicitly hard-code gcc(1) as the compiler. Partially revert r264703, which did a post-chroot install of gcc(1). This was initially removed because gcc(1) fails to build usr.bin/dtc/ causing the xdev target to fail. So this time, move the gcc(1) installation after xdev is built. This change is likely applicable to stable/10 arm build failures, as well. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=268232
* Move xdev knobs from release/arm/release.sh and into anGlen Barber2014-04-236-2/+6
| | | | | | | | | | | XDEV_FLAGS variable in ${KERNCONF}.conf file. MFC after: 3 days X-MFC-Note: fix stable/10 XDEV_FLAGS local for branch Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264794
* Play musical-KNOBS a bit more with release/arm/release.sh.Glen Barber2014-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | For stable/10, r264703 sets the correct WITH/WITHOUT knobs to get xdev built with the arm-freebsd-gcc binary installed. Unfortunately, the same fix does not work on head/. Also, quite to my amazement, WITH_GCC=1 and WITH_GNUCXX=1 causes xdev to fail spectactularly at least on r264791. The situation as it stands is: - gcc(1) is needed for the u-boot build. - cc(1) *cannot* be clang(1) To shoe-horn the toolchain to make 'xdev' give what is needed, remove WITH_GNUCXX=1 and add WITH_GCC_BOOTSTRAP=1. MFC After: 1 week X-MFC-To: stable/10 only X-MFC-Note: after stable/10 is broken in this way... Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264793
* Apply a slightly different color hammer to arm/release.sh:Glen Barber2014-04-201-6/+1
| | | | | | | | | | | | | | | | | | | | - gcc(1) fails to build usr.bin/dtc - lack of WITH_GNUCXX=1 causes cc1plus(1) calls to fail - u-boot fails to build with clang (hard-coded gcc(1) calls) Implement the proper incantation of WITH_/WITHOUT_ knobs to get arm snapshot builds working again. Since the cc(1) binary is no longer expected to be clang(1), remove the chroot(8) post-install cc(1) overwrite. MFC After: 3 days X-MFC-With: r264518,r264697,r264698 Tested on: stable/10@r264677 RPI-B Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264703
* Fix EOL escape.Glen Barber2014-04-201-1/+1
| | | | | | | | | MFC after: 3 days X-MFC-With: r264697 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264698
* When building the 'xdev' target when WITH_GCC=1 andGlen Barber2014-04-201-2/+3
| | | | | | | | | | | | | | | | WITHOUT_CLANG_IS_CC=1, it appears WITHOUT_CLANG=1 must also be set. While here, reorder the lines to put the WITH_* and WITHOUT_* entries on the same line. MFC After: 3 days X-MFC-With: r264518 Tested on: stable/10@r264677 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264697
* Fix armv6 build failure: "armv6-freebsd-gcc: not found"Glen Barber2014-04-151-1/+1
| | | | | | | | Help from: imp Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264518
* Merge r262906 from ^/projects/release-embedded:Glen Barber2014-04-044-32/+0
| | | | | | | | | Remove only-works-on-amd64 restriction. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264107
* Merge r262907 from ^/projects/release-embedded:Glen Barber2014-04-041-0/+28
|\ | | | | | | | | | | | | | | | | Add ZEDBOARD support for release builds. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=264105
| * Add ZEDBOARD.Glen Barber2014-03-071-0/+28
| | | | | | | | | | | | | | | | Tested against: stable/10@r262905 (build only) Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-embedded/; revision=262907
| * Remove only-works-on-amd64 restriction.Glen Barber2014-03-074-32/+0
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-embedded/; revision=262906
* Merge ^/projects/release-embedded into ^/head.Glen Barber2014-03-055-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After several months of testing and fixing (and breaking) various parts of release/release.sh changes, it is now possible to build FreeBSD/arm images as part of the release process. When EMBEDDEDBUILD is set in the release.conf file, release.sh will create the build environment, then run a separate script in release/${XDEV}/release.sh [1]. Currently, only arm is supported. The release/${XDEV}/release.sh configures the build environment specific for the target image, such as installing gcc(1), installing additional third-party software from the ports tree, and fetching external sources. Once the build environment is set up, release/${XDEV}/release.sh runs Crochet, written by Tim Kientzle, which builds the userland and kernel, and creates an image that can be written to an SD card with dd(1). Many thanks to Tim for his work on Crochet. Sample configurations for FreeBSD/arm boards are in the release/arm/ directory, and Crochet configuration files for each board are located in release/tools/arm/. Supported boards at this time are: BEAGLEBONE, PANDABOARD, RPI-B, and WANDBOARD-QUAD. Adding support for additional boards will continue in the projects/release-embedded/ branch, and incrementally merged back to head/. Many thanks to the FreeBSD Foundation for the support and sponsorship of this project. [1] XDEV is used in order to keep the various configurations organized by architecture, but since TARGET and TARGET_ARCH are used to build the chroot, the values of those variables cannot be used. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=262810
* Merge the following:Glen Barber2014-02-211-18/+23
| | | | | | | | | | | | | | | | | ^/user/gjb/hacking/release-embedded: 259994,260000,260895-260896,261139,261152, 261174,261176,261210,261221,261237,261239, 261448,261489 ^/user/gjb/release-embedded: 262305,262307 svn:mergeinfo is intentionally not included in the commit, so it does not propagate to head/. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-embedded/; revision=262314
* Add configurations for WANDBOARD-QUAD images.Glen Barber2014-02-211-0/+37
| | | | | | | | Tested against: head@r261642 (build only) Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/release-embedded/; revision=262305
* Pass WORLD_FLAGS to the gcc and xdev builds.Glen Barber2014-02-041-2/+5
| | | | | | | | | | | Building gnu/usr.bin/cc/ with '-j' set blows up quite impressively, so add '-j1' after WORLD_FLAGS, and add a comment explaining why '-j1' is there. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261489
* Export WORLD_FLAGS and KERNEL_FLAGS for buildworld/buildkernel.Glen Barber2014-02-033-0/+6
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261448
* Compress arm/armv6 images before generating checksums to reduceGlen Barber2014-01-281-2/+3
| | | | | | | | | image size for download. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261237
* Add initial support for the PANDABOARD.Glen Barber2014-01-282-0/+47
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261221
* Copy resulting images to top level /R directory of the chrootGlen Barber2014-01-271-0/+4
| | | | | | | | | | to match behavior of 'make install' target of src/release/. Generate sha256 and md5 checksums while here. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261210
* Remove EMBEDDED_WORLD_FLAGS from release.sh, and move the gcc(1)Glen Barber2014-01-263-2/+3
| | | | | | | | | | | | | | build to arm/release.sh. This prevents needing to build a separate chroot environment for the arm/armv6 builds when it is not absolutely necessary. This is useful for situations where a single userland build is used to populate more than one chroot. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261176
* Fix TARGET_ARCH and XDEV_ARCH for BEAGLEBONE, should be arm/armv6.Glen Barber2014-01-251-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261174
* Explicitly set XDEV_ARCH and TARGET_ARCH to 'armv6', which resolvesGlen Barber2014-01-251-1/+1
| | | | | | | | | boot-time issues when building 10.0-RELEASE images. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261152
* Add initial support for building arm BEAGLEBONE images.Glen Barber2014-01-242-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | - In arm/release.sh: - Move crochet work directory creation to occur earlier, since its parent directory is needed to store a fetched u-boot version. - Add a before_build() function as a quick hack to run board-specific (kernel configuration specific, really) commands, if any. - For the BEAGLEBONE kernel, a specific version of u-boot source is needed. Fetch the source in before_build() for this case. Unfortunately, there are no checksums available (that I can find) for these sources. For a quick solution, add the hard-coded sha256 of the tarball, and fetch from my public_html/ directory. A more permanent solution for this needs to be found. Add initial release.sh and crochet configuration files for the BEAGLEBONE build. Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261139
* When bootstrapping the build chroot, the default environment isGlen Barber2014-01-192-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | set up for the amd64/amd64 TARGET/TARGET_ARCH combination. Some of the build tools used here (u-boot in particular) require use of gcc(1). The lang/gcc* from ports/ will install as 'gccNN' instead of 'gcc', so they cannot be used without extra hacks. Add an EMBEDDED_WORLD_FLAGS variable to be used to properly set up the build chroot. For the RPI-B case, EMBEDDED_WORLD_FLAGS is set to 'WITH_GCC=1', which is used to set up the build chroot. While here, in followup to r260895, do not rely on the necessary configuration files and/or scripts to exist in the build target src/ tree. To work around cases where files do not exist, copy (from the local release/ checkout) the tools/${XDEV}/crochet-${KERNEL}.conf to ${CHROOTDIR}/tmp/external/crochet-${KERNEL}.conf to make them accessible to the external utilities that need them (i.e., crochet). Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=260896
* Implement cross build support for embedded devices intoGlen Barber2013-12-282-0/+94
release.sh: - Modify release/release.sh to recognize an 'EMBEDDEDBUILD' variable. When set, release/release.sh will build the chroot userland as is done for big-iron builds. - Instead of running the 'buildworld', 'buildkernel', and 'release' targets in the chroot, a separate script is run. The script tools/release/${XDEV}/release.sh sets up the rest of the chroot workspace, such as installing ports that will be needed, and building the 'xdev' target. - crochet (by kientzle@) is checked out from the upstream repository (and if needed, u-boot, in the case of Raspberry Pi). - tools/release/${XDEV}/release.sh then runs crochet with a configuration file specific to the ${KERNCONF} being built. Note that this is effectively a first-pass attempt to integrate this into the release process. Tested against: head@r259961 Sponsored by: The FreeBSD Foundation Notes: svn path=/user/gjb/hacking/release-embedded/; revision=259994