Skip to content
Open
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
18 changes: 15 additions & 3 deletions functions
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,26 @@ function build_config() {
fi

local cfg_fragment
local dckr_fragment
cfg_fragment="${KERNEL_DIR}/arch/${arch}/configs/${DEVICE_CONFIG_FRAGMENT}"
dckr_fragment="${KERNEL_DIR}/arch/${arch}/configs/${DEVICE_CONFIG_DOCKER}"

if [[ ! -f "${cfg_fragment}" ]]; then
if [[ -f "${cfg_fragment}" ]]; then
cat "${cfg_fragment}" >> "${OUT_DIR}/.config"
print "cat ${cfg_fragment} >> ${OUT_DIR}/.config"
else
print "----------------------------------------------------------------"
print "${DEVICE_CONFIG_FRAGMENT} File not found!"
print "Missing config fragment: ${DEVICE_CONFIG_FRAGMENT}"
print "----------------------------------------------------------------"
fi

if [[ -f "${dckr_fragment}" ]]; then
cat "${dckr_fragment}" >> "${OUT_DIR}/.config"
print "cat ${dckr_fragment} >> ${OUT_DIR}/.config"
else
cat "${cfg_fragment}" >>"${OUT_DIR}"/.config
print "----------------------------------------------------------------"
print "Missing Docker fragment: ${DEVICE_CONFIG_DOCKER}"
print "----------------------------------------------------------------"
fi

if is_enabled "${PERF_BUILD}"; then
Expand Down
1 change: 1 addition & 0 deletions rk3588_axon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DEVICE_NAME="rk3588_axon"
DEVICE_DTB_FILE="rk3588-axon-linux"
DEVICE_DEFCONFIG="rockchip_linux_defconfig"
DEVICE_CONFIG_FRAGMENT="rk3588_axon.config"
DEVICE_CONFIG_DOCKER="rockchip_linux_docker.config"
DEVICE_ARCH="arm64"
DEVICE_KERNEL_IMAGE_FILE="${OUT_DIR}/arch/${DEVICE_ARCH}/boot/Image"
DEVICE_DTB_DIR="${OUT_DIR}/arch/${DEVICE_ARCH}/boot/dts/rockchip"
Expand Down
1 change: 1 addition & 0 deletions rk3588_axon_mainline.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DEVICE_NAME="rk3588_axon_mainline"
DEVICE_DTB_FILE="rk3588-axon"
DEVICE_DEFCONFIG="rockchip_linux_defconfig"
DEVICE_CONFIG_FRAGMENT="rk3588_axon.config"
DEVICE_CONFIG_DOCKER="rockchip_linux_docker.config"
DEVICE_ARCH="arm64"
DEVICE_KERNEL_IMAGE_FILE="${OUT_DIR}/arch/${DEVICE_ARCH}/boot/Image"
DEVICE_DTB_DIR="${OUT_DIR}/arch/${DEVICE_ARCH}/boot/dts/rockchip"
Expand Down