Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions BUILDME.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ for i in $*; do
if [ $i = "update-firmware" ]; then
rm -rf output/build/rpi-firmware-master
rm -rf dl/rpi-firmware-master.tar.gz
echo "rpi-firmware Git HEAD @ "`git ls-remote --heads https://github.com/raspberrypi/firmware | sed -n 2p` > rpi-firmware-head &
fi

# Redownload userland from raspberrypi/userland master HEAD to update to latest
if [ $i = "update-userland" ]; then
rm -rf output/build/rpi-userland-master
rm -rf dl/rpi-userland-master.tar.gz
echo "rpi-userland Git HEAD @ "`git ls-remote --heads https://github.com/raspberrypi/userland | sed -n 2p` > rpi-userland-head &
fi
done

Expand All @@ -44,8 +42,8 @@ BUILD_INFO="../output/BUILD-DATA"
echo "Build-date: $(date +"%Y-%m-%d")" > "$BUILD_INFO"
echo "NOOBS Version: "`git describe` >> "$BUILD_INFO"
echo "NOOBS Git HEAD @ "`git rev-parse --verify HEAD` >> "$BUILD_INFO"
cat rpi-userland-head >> "$BUILD_INFO"
cat rpi-firmware-head >> "$BUILD_INFO"
cat dl/rpi-userland-head.version >> "$BUILD_INFO"
cat dl/rpi-firmware-head.version >> "$BUILD_INFO"

cd ..

Expand Down
7 changes: 7 additions & 0 deletions buildroot/package/rpi-firmware/rpi-firmware.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ RPI_FIRMWARE_SITE = http://github.com/raspberrypi/firmware/tarball/$(RPI_FIRMWAR
RPI_FIRMWARE_LICENSE = BSD-3c
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom

# we're downloading a branchname rather than a commit-id, so this gets the commit-id we just downloaded
define RPI_FIRMWARE_GET_CURRENT_VERSION
echo "rpi-firmware Git HEAD @ "`git ls-remote --heads https://github.com/raspberrypi/firmware | grep refs/heads/$(RPI_FIRMWARE_VERSION)` > $(BR2_DL_DIR)/rpi-firmware-head.version
endef

RPI_FIRMWARE_POST_DOWNLOAD_HOOKS += RPI_FIRMWARE_GET_CURRENT_VERSION

define RPI_FIRMWARE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
$(INSTALL) -D -m 0644 $(@D)/boot/start.elf $(BINARIES_DIR)/rpi-firmware/start.elf
Expand Down
6 changes: 6 additions & 0 deletions buildroot/package/rpi-userland/rpi-userland.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ RPI_USERLAND_LICENSE_FILES = LICENCE
RPI_USERLAND_INSTALL_STAGING = YES
RPI_USERLAND_CONF_OPT = -DVMCS_INSTALL_PREFIX=/usr

# we're downloading a branchname rather than a commit-id, so this gets the commit-id we just downloaded
define RPI_USERLAND_GET_CURRENT_VERSION
echo "rpi-userland Git HEAD @ "`git ls-remote --heads https://github.com/raspberrypi/userland | grep refs/heads/$(RPI_USERLAND_VERSION)` > $(BR2_DL_DIR)/rpi-userland-head.version
endef

RPI_USERLAND_POST_DOWNLOAD_HOOKS += RPI_USERLAND_GET_CURRENT_VERSION

define RPI_USERLAND_POST_TARGET_CLEANUP
rm -Rf $(TARGET_DIR)/usr/src
Expand Down
1 change: 0 additions & 1 deletion buildroot/rpi-firmware-head

This file was deleted.

1 change: 0 additions & 1 deletion buildroot/rpi-userland-head

This file was deleted.