Skip to content

Commit

Permalink
fix(nvidia): point to the new script
Browse files Browse the repository at this point in the history
Also renames targets

Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Jan 31, 2025
1 parent 391777c commit 8bbfa90
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ all-arm:
END

IF [ "$MODEL" = "nvidia-jetson-agx-orin" ]
BUILD +prepare-arm-image
BUILD +prepare-nvidia-l4t
ELSE
BUILD +arm-image
END
Expand Down Expand Up @@ -674,17 +674,16 @@ arm-image:
END
SAVE ARTIFACT /build/$IMAGE_NAME.sha256 img-sha256 AS LOCAL build/$IMAGE_NAME.sha256

prepare-arm-image:
prepare-nvidia-l4t:
ARG AURORABOOT_IMAGE
ARG COMPRESS_IMG=true

FROM $AURORABOOT_IMAGE
WORKDIR /build

# These sizes are in MB and are specific only for the nvidia-jetson-agx-orin
ENV SIZE="25500"
ENV STATE_SIZE="21000"
ENV RECOVERY_SIZE="11000"
ENV STATE_SIZE="25500"
ENV RECOVERY_SIZE="21000"
ENV DEFAULT_ACTIVE_SIZE="7000"

COPY --platform=linux/arm64 +image-rootfs/rootfs /build/image
Expand All @@ -693,7 +692,7 @@ prepare-arm-image:
RUN mkdir bootloader
# With docker is required for loop devices
WITH DOCKER --allow-privileged
RUN /prepare_arm_images.sh
RUN /prepare_nvidia_orin_images.sh
END

SAVE ARTIFACT /build/bootloader/efi.img efi.img AS LOCAL build/efi.img
Expand Down

0 comments on commit 8bbfa90

Please sign in to comment.