Added make download-packages

This commit is contained in:
2026-03-22 17:56:33 +08:00
parent 0091b86cf5
commit 02a9209370
11 changed files with 56 additions and 39 deletions

View File

@@ -14,17 +14,10 @@ RUN test -n "${NXP_VERSION}" || (echo "Please specify NXP_VERSION" >&2; exit 1);
test -n "${CROSS_COMPILE}" || (echo "Please specify CROSS_COMPILE" >&2; exit 1); \
test -n "${DEVICE_TREE_TARGET}" || (echo "Please specify DEVICE_TREE_TARGET" >&2; exit 1)
# Dev-only shortcut
COPY dev/nxplinux.tar.gz ./
RUN tar -xf nxplinux.tar.gz \
COPY packages/${NXP_VERSION}.tar.gz ./
RUN tar -xf ${NXP_VERSION}.tar.gz \
&& mv "linux-${NXP_VERSION}" nxplinux \
&& rm -f nxplinux.tar.gz
# Or download directly:
# RUN curl -L "https://github.com/nxp-qoriq/linux/archive/refs/tags/${NXP_VERSION}.tar.gz" -o nxplinux.tar.gz \
# && tar -xf nxplinux.tar.gz \
# && mv "linux-${NXP_VERSION}" nxplinux \
# && rm -f nxplinux.tar.gz
&& rm -f ${NXP_VERSION}.tar.gz
WORKDIR /build/nxplinux