Copy requried xml files
This commit is contained in:
@@ -197,11 +197,11 @@ ARG DEVICE_TREE_TARGET
|
||||
|
||||
RUN cd /src/linux \
|
||||
&& grep -q "^dtb-\\\$(CONFIG_ARCH_LAYERSCAPE) += ${DEVICE_TREE_TARGET}.dtb$" \
|
||||
arch/arm64/boot/dts/freescale/Makefile \
|
||||
|| echo "dtb-\$(CONFIG_ARCH_LAYERSCAPE) += ${DEVICE_TREE_TARGET}.dtb" \
|
||||
>> arch/arm64/boot/dts/freescale/Makefile \
|
||||
arch/arm64/boot/dts/freescale/Makefile \
|
||||
|| echo "dtb-\$(CONFIG_ARCH_LAYERSCAPE) += ${DEVICE_TREE_TARGET}.dtb" \
|
||||
>> arch/arm64/boot/dts/freescale/Makefile \
|
||||
&& make ARCH="${ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" \
|
||||
"freescale/${DEVICE_TREE_TARGET}.dtb"
|
||||
"freescale/${DEVICE_TREE_TARGET}.dtb"
|
||||
|
||||
# Patch verdor's modules
|
||||
RUN mkdir -p /src/patches/ask
|
||||
@@ -279,6 +279,11 @@ RUN KERNEL_VER=$(ls /out/rootfs/lib/modules/) && \
|
||||
depmod -b /out/rootfs $KERNEL_VER && \
|
||||
cd /out && tar zcf rootfs.tar.gz rootfs
|
||||
|
||||
RUN mkdir -p /out/rootfs-cfg/etc/dpa && \
|
||||
cp -r "${ASK_DIR}/dpa_app/files/etc/"* /out/rootfs-cfg/etc/dpa/ && \
|
||||
cp "${ASK_DIR}/config/gateway-dk/cdx_cfg.xml" /out/rootfs-cfg/etc/dpa/ && \
|
||||
cp -r /src/fmc/etc /out/rootfs-cfg/etc
|
||||
|
||||
FROM scratch AS export
|
||||
|
||||
ARG DEVICE_TREE_TARGET
|
||||
@@ -292,8 +297,5 @@ COPY --from=build \
|
||||
/src/linux/arch/arm64/boot/dts/freescale/${DEVICE_TREE_TARGET}.dtb \
|
||||
/kernel/
|
||||
|
||||
# Grab the proprietary Mono Gateway XML configs
|
||||
COPY --from=build \
|
||||
/src/ASK/config/gateway-dk/cdx_cfg.xml \
|
||||
/src/ASK/dpa_app/files/etc/cdx_pcd.xml \
|
||||
/xml/
|
||||
# Export the configs for Gateway Development Kit
|
||||
COPY --from=build /out/rootfs-cfg/ /rootfs-cfg/
|
||||
|
||||
Reference in New Issue
Block a user