### COMMON CONFIG ### CFLAGS?= #Strip modules when installing to conserve disk space INSTALL_MOD_STRIP?=1 # Set EXEC_DIR to install example binaries. # This will be configured with the setup.sh script. EXEC_DIR?=__EXEC_DIR__ #root of the target file system for installing applications DESTDIR?=__DESTDIR__ # Root of the boot partition to install boot binaries BOOTFS?=__BOOTFS__ MAKE_JOBS?=1 ### TI SDK CONFIG ### #Points to the root of the TI SDK export TI_SDK_PATH?=/home/jim/ti/ti-processor-sdk-linux-rt-am62xx-evm-09.02.01.10 export LINUX_DEVKIT_PATH=$(TI_SDK_PATH)/linux-devkit export K3_R5_LINUX_DEVKIT_PATH=$(TI_SDK_PATH)/k3r5-devkit SDK_PATH_TARGET=$(LINUX_DEVKIT_PATH)/sysroots/aarch64-oe-linux SDK_PATH_HOST=$(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux # The source directories for each component ARM_BENCHMARKS_SRC_DIR=$(TI_SDK_PATH)/example-applications/*arm-benchmarks* AM_SYSINFO_SRC_DIR=$(TI_SDK_PATH)/example-applications/*am-sysinfo* OPROFILE_SRC_DIR=$(TI_SDK_PATH)/example-applications/*oprofile-example* CRYPTODEV_SRC_DIR=$(TI_SDK_PATH)/board-support/extra-drivers/cryptodev* IMG_ROGUE_SRC_DIR=$(TI_SDK_PATH)/board-support/extra-drivers/ti-img-rogue-driver* UBOOT_SRC_DIR=$(TI_SDK_PATH)/board-support/ti-u-boot* KIG_SRC_DIR=$(TI_SDK_PATH)/board-support/k3-image-gen-* LINUXKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/ti-linux-kernel* export TI_SECURE_DEV_PKG=$(TI_SDK_PATH)/board-support/core-secdev-k3 ### PLATFORM CONFIG ### #platform SOC=am62 #add platform for scripts # JM PLATFORM?=am62xx-evm PLATFORM?=am62xx-lp-evm #end of mod #defconfig DEFCONFIG=tisdk_am62xx-evm_defconfig #Architecture ARCH=arm64 #ARM Toolchains export CROSS_COMPILE=$(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux- export CROSS_COMPILE_ARMV7=$(K3_R5_LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/arm-oe-eabi/arm-oe-eabi- #Default CC value to be used when cross compiling. This is so that the #GNU Make default of "cc" is not used to point to the host compiler export CC=$(CROSS_COMPILE)gcc --sysroot=$(SDK_PATH_TARGET) # u-boot machine configs for A53 and R5 UBOOT_MACHINE=am62x_evm_a53_defconfig # JM UBOOT_MACHINE_R5=am62x_evm_r5_defconfig UBOOT_MACHINE_R5=am62x_evm_r5_ethboot_defconfig # end of JM MKIMAGE_DTB_FILE=a53/arch/arm/dts/k3-am625-sk.dtb # rt fragment RT_FRAGMENT=ti_rt.config # Update platform, defconfig if PLATFORM=am62xx-lp-evm ifeq ($(PLATFORM),am62xx-lp-evm) UBOOT_MACHINE=am62x_lpsk_a53_defconfig UBOOT_MACHINE_R5=am62x_lpsk_r5_defconfig MKIMAGE_DTB_FILE=a53/arch/arm/dts/k3-am62-lp-sk.dtb endif KERNEL_DEVICETREE_PREFIX=ti/k3-am625|ti/k3-am62-|ti/k3-am62x|ti/k3-am62.dtsi TI_LINUX_FIRMWARE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM) UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl31.bin UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl32.bin LINUXEXTRASKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-extras-* UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-jailhouse-* # Add configs for ti-img-rogue-driver PVR_BUILD_DIR=am62_linux RGX_BVNC="33.15.11.3" WINDOW_SYSTEM=wayland MAKE_ALL_TARGETS?= arm-benchmarks cryptodev u-boot linux linux-dtbs ti-img-rogue-driver jailhouse linux-extras linux-extras-dtbs u-boot-extras MAKE_JOBS=16