Rules.make 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #platform
  2. PLATFORM=am335x-evm
  3. #defconfig
  4. DEFCONFIG=tisdk_am335x-evm_defconfig
  5. #Architecture
  6. ARCH=armv7-a
  7. #u-boot machine
  8. UBOOT_MACHINE=am335x_evm_config
  9. #Points to the root of the TI SDK
  10. export TI_SDK_PATH=/opt/local_controller
  11. #root of the target file system for installing applications
  12. DESTDIR=__DESTDIR__
  13. #Points to the root of the Linux libraries and headers matching the
  14. #demo file system.
  15. export LINUX_DEVKIT_PATH=$(TI_SDK_PATH)/linux-devkit
  16. #Cross compiler prefix
  17. export CROSS_COMPILE=$(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-
  18. #Default CC value to be used when cross compiling. This is so that the
  19. #GNU Make default of "cc" is not used to point to the host compiler
  20. export CC=$(CROSS_COMPILE)gcc
  21. #Location of environment-setup file
  22. export ENV_SETUP=$(LINUX_DEVKIT_PATH)/environment-setup
  23. #The directory that points to the SDK kernel source tree
  24. LINUXKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305
  25. #The directory that points to the uboot source tree
  26. UBOOT_INSTALL_DIR=$(TI_SDK_PATH)/board-support/u-boot-2017.01+gitAUTOINC+340fb36f04-g340fb36f04
  27. CFLAGS= -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard
  28. #Strip modules when installing to conserve disk space
  29. INSTALL_MOD_STRIP=1
  30. SDK_PATH_TARGET=$(TI_SDK_PATH)/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/
  31. # Set EXEC_DIR to install example binaries
  32. EXEC_DIR=__EXEC_DIR__
  33. MAKE_JOBS=1