ti processor sdk linux am335x evm Makefile hacking
#
# ti processor sdk linux am335x evm Makefile hacking
# 说明:
# 本文主要对TI的sdk中的Makefile脚本进行解读,是为了了解其工作机制。
# 该文件中的一些写法是值得参考的。
# -- 深圳 南山平山村 曾剑锋 # #platform
# PLATFORM=am335x-evm
# #defconfig
# DEFCONFIG=singlecore-omap2plus_defconfig
# #Architecture
# ARCH=armv7-a
# #u-boot machine
# UBOOT_MACHINE=am335x_evm_config
# #Points to the root of the TI SDK
# export TI_SDK_PATH=/home/Qt/ti-processor-sdk-linux-am335x-evm-01.00.00.00
# #root of the target file system for installing applications
# DESTDIR=/home/Qt/ti-processor-sdk-linux-am335x-evm-01.00.00.00/targetNFS
# #Points to the root of the Linux libraries and headers matching the
# #demo file system.
# export LINUX_DEVKIT_PATH=$(TI_SDK_PATH)/linux-devkit
# #Cross compiler prefix
# export CROSS_COMPILE=$(LINUX_DEVKIT_PATH)/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-
# #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
# #Location of environment-setup file
# export ENV_SETUP=$(LINUX_DEVKIT_PATH)/environment-setup
# #The directory that points to the SDK kernel source tree
# LINUXKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-3.14.-g2489c02
# CFLAGS= -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8
# SDK_PATH_TARGET=$(TI_SDK_PATH)/linux-devkit/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/
# MAKE_JOBS=
-include Rules.make # 开启多少个进行来编译系统
MAKE_JOBS ?= all: linux matrix-gui arm-benchmarks am-sysinfo matrix-gui-browser refresh-screen oprofile-example u-boot-spl ti-crypto-examples linux-dtbs wireless cryptodev sgx-modules
clean: linux_clean matrix-gui_clean arm-benchmarks_clean am-sysinfo_clean matrix-gui-browser_clean refresh-screen_clean oprofile-example_clean u-boot-spl_clean ti-crypto-examples_clean linux-dtbs_clean wireless_clean cryptodev_clean sgx-modules_clean
install: linux_install matrix-gui_install arm-benchmarks_install am-sysinfo_install matrix-gui-browser_install refresh-screen_install oprofile-example_install u-boot-spl_install ti-crypto-examples_install linux-dtbs_install wireless_install cryptodev_install sgx-modules_install
# Kernel build targets
linux: linux-dtbs
@echo =================================
@echo Building the Linux Kernel
@echo =================================
$(MAKE) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) $(DEFCONFIG)
$(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zImage
$(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules linux_install: linux-dtbs_install
@echo ===================================
@echo Installing the Linux Kernel
@echo ===================================
@if [ ! -d $(DESTDIR) ] ; then \
echo "The extracted target filesystem directory doesn't exist."; \
echo "Please run setup.sh in the SDK's root directory and then try again."; \
exit ; \
fi
install -d $(DESTDIR)/boot
install $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/zImage $(DESTDIR)/boot
install $(LINUXKERNEL_INSTALL_DIR)/vmlinux $(DESTDIR)/boot
install $(LINUXKERNEL_INSTALL_DIR)/System.map $(DESTDIR)/boot
$(MAKE) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) INSTALL_MOD_PATH=$(DESTDIR) modules_install linux_clean:
@echo =================================
@echo Cleaning the Linux Kernel
@echo =================================
$(MAKE) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) mrproper
# Make Rules for matrix-gui project
matrix-gui:
@echo =============================
@echo Building Matrix GUI
@echo =============================
@echo NOTHING TO DO. COMPILATION NOT REQUIRED matrix-gui_clean:
@echo =============================
@echo Cleaning Matrix GUI
@echo =============================
@echo NOTHING TO DO. matrix-gui_install:
@echo =============================
@echo Installing Matrix GUI
@echo =============================
@cd example-applications; cd `find . -name "*matrix-gui-2.0*"`; make install
# arm-benchmarks build targets
arm-benchmarks:
@echo =============================
@echo Building ARM Benchmarks
@echo =============================
@cd example-applications; cd `find . -name "*arm-benchmarks*"`; make arm-benchmarks_clean:
@echo =============================
@echo Cleaning ARM Benchmarks
@echo =============================
@cd example-applications; cd `find . -name "*arm-benchmarks*"`; make clean arm-benchmarks_install:
@echo ==============================================
@echo Installing ARM Benchmarks - Release version
@echo ==============================================
@cd example-applications; cd `find . -name "*arm-benchmarks*"`; make install arm-benchmarks_install_debug:
@echo ============================================
@echo Installing ARM Benchmarks - Debug Version
@echo ============================================
@cd example-applications; cd `find . -name "*arm-benchmarks*"`; make install_debug
# am-sysinfo build targets
am-sysinfo:
@echo =============================
@echo Building AM Sysinfo
@echo =============================
@cd example-applications; cd `find . -name "*am-sysinfo*"`; make am-sysinfo_clean:
@echo =============================
@echo Cleaning AM Sysinfo
@echo =============================
@cd example-applications; cd `find . -name "*am-sysinfo*"`; make clean am-sysinfo_install:
@echo ===============================================
@echo Installing AM Sysinfo - Release version
@echo ===============================================
@cd example-applications; cd `find . -name "*am-sysinfo*"`; make install am-sysinfo_install_debug:
@echo =============================================
@echo Installing AM Sysinfo - Debug version
@echo =============================================
@cd example-applications; cd `find . -name "*am-sysinfo*"`; make install_debug
# matrix-gui-browser build targets
matrix-gui-browser:
@echo =================================
@echo Building Matrix GUI Browser
@echo =================================
@cd example-applications; cd `find . -name "*matrix-gui-browser*"`; make -f Makefile.build release matrix-gui-browser_clean:
@echo =================================
@echo Cleaning Matrix GUI Browser
@echo =================================
@cd example-applications; cd `find . -name "*matrix-gui-browser*"`; make -f Makefile.build clean matrix-gui-browser_install:
@echo ===================================================
@echo Installing Matrix GUI Browser - Release version
@echo ===================================================
@cd example-applications; cd `find . -name "*matrix-gui-browser*"`; make -f Makefile.build install matrix-gui-browser_install_debug:
@echo =================================================
@echo Installing Matrix GUI Browser - Debug Version
@echo =================================================
@cd example-applications; cd `find . -name "*matrix-gui-browser*"`; make -f Makefile.build install_debug
# refresh-screen build targets
refresh-screen:
@echo =============================
@echo Building Refresh Screen
@echo =============================
@cd example-applications; cd `find . -name "*refresh-screen*"`; make -f Makefile.build release refresh-screen_clean:
@echo =============================
@echo Cleaning Refresh Screen
@echo =============================
@cd example-applications; cd `find . -name "*refresh-screen*"`; make -f Makefile.build clean refresh-screen_install:
@echo ================================================
@echo Installing Refresh Screen - Release version
@echo ================================================
@cd example-applications; cd `find . -name "*refresh-screen*"`; make -f Makefile.build install refresh-screen_install_debug:
@echo ==============================================
@echo Installing Refresh Screen - Debug Version
@echo ==============================================
@cd example-applications; cd `find . -name "*refresh-screen*"`; make -f Makefile.build install_debug
# oprofile-example build targets
oprofile-example:
@echo =============================
@echo Building OProfile Example
@echo =============================
@cd example-applications; cd `find . -name "*oprofile-example*"`; make oprofile-example_clean:
@echo =============================
@echo Cleaning OProfile Example
@echo =============================
@cd example-applications; cd `find . -name "*oprofile-example*"`; make clean oprofile-example_install:
@echo =============================================
@echo Installing OProfile Example - Debug version
@echo =============================================
@cd example-applications; cd `find . -name "*oprofile-example*"`; make install
# u-boot build targets
u-boot-spl: u-boot
u-boot-spl_clean: u-boot_clean
u-boot-spl_install: u-boot_install u-boot:
@echo ===================================
@echo Building U-boot
@echo ===================================
$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) $(UBOOT_MACHINE)
$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) u-boot_clean:
@echo ===================================
@echo Cleaining U-boot
@echo ===================================
$(MAKE) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) distclean u-boot_install:
@echo ===================================
@echo Installing U-boot
@echo ===================================
@echo "Nothing to do"
# ti-crypto-examples build targets
ti-crypto-examples:
@echo =================================
@echo Building TI Crypto Examples
@echo =================================
@cd example-applications; cd `find . -name "*ti-crypto-examples*"`; make release ti-crypto-examples_clean:
@echo =================================
@echo Cleaning TI Crypto Examples
@echo =================================
@cd example-applications; cd `find . -name "*ti-crypto-examples*"`; make clean ti-crypto-examples_install:
@echo ===================================================
@echo Installing TI Crypto Examples - Release version
@echo ===================================================
@cd example-applications; cd `find . -name "*ti-crypto-examples*"`; make install ti-crypto-examples_install_debug:
@echo =================================================
@echo Installing TI Crypto Examples - Debug Version
@echo =================================================
@cd example-applications; cd `find . -name "*ti-crypto-examples*"`; make install_debug
# Kernel DTB build targets
linux-dtbs:
@echo =====================================
@echo Building the Linux Kernel DTBs
@echo =====================================
$(MAKE) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) $(DEFCONFIG)
$(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb linux-dtbs_install:
@echo =======================================
@echo Installing the Linux Kernel DTBs
@echo =======================================
@if [ ! -d $(DESTDIR) ] ; then \
echo "The extracted target filesystem directory doesn't exist."; \
echo "Please run setup.sh in the SDK's root directory and then try again."; \
exit ; \
fi
install -d $(DESTDIR)/boot
@cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/*.dtb $(DESTDIR)/boot/ linux-dtbs_clean:
@echo =======================================
@echo Cleaning the Linux Kernel DTBs
@echo =======================================
@echo "Nothing to do" wireless: compat-modules
wireless_install: compat-modules_install
wireless_clean: compat-modules_clean compat-modules: linux
@echo ================================
@echo Building compat-modules
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "*compat-wireless*"`; \
make KLIB_BUILD=${LINUXKERNEL_INSTALL_DIR} KLIB=${DESTDIR} CC="cc" defconfig-wl18xx; \
make KLIB_BUILD=${LINUXKERNEL_INSTALL_DIR} KLIB=${DESTDIR} CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm compat-modules_install:
@echo ================================
@echo Installing compat-modules
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "*compat-wireless*"`; \
make DEPMOD=echo DESTDIR=${DESTDIR} KLIB_BUILD=${LINUXKERNEL_INSTALL_DIR} KLIB=${DESTDIR} INSTALL_MOD_PATH=${DESTDIR} CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm modules_install compat-modules_clean:
@echo ================================
@echo Cleaning compat-modules
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "*compat-wireless*"`; \
make KLIB_BUILD=${LINUXKERNEL_INSTALL_DIR} KLIB=${DESTDIR} CROSS_COMPILE=${CROSS_COMPILE} ARCH=arm mrproper cryptodev: linux
@echo ================================
@echo Building cryptodev-linux
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "cryptodev*"`; \
make ARCH=arm KERNEL_DIR=$(LINUXKERNEL_INSTALL_DIR) cryptodev_clean:
@echo ================================
@echo Cleaning cryptodev-linux
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "cryptodev*"`; \
make ARCH=arm KERNEL_DIR=$(LINUXKERNEL_INSTALL_DIR) clean cryptodev_install:
@echo ================================
@echo Installing cryptodev-linux
@echo ================================
@if [ ! -d $(DESTDIR) ] ; then \
echo "The extracted target filesystem directory doesn't exist."; \
echo "Please run setup.sh in the SDK's root directory and then try again."; \
exit 1; \
fi
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "cryptodev*"`; \
make ARCH=arm KERNEL_DIR=$(LINUXKERNEL_INSTALL_DIR) INSTALL_MOD_PATH=$(DESTDIR) PREFIX=$(SDK_PATH_TARGET) install
sgx-modules: linux
@echo =====================================
@echo Building sgx-modules
@echo =====================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "sgx-modules*"`; \
make ARCH=arm KERNELDIR=$(LINUXKERNEL_INSTALL_DIR) BUILD=release TI_PLATFORM=ti335x SUPPORT_XORG=0 sgx-modules_clean:
@echo =====================================
@echo Cleaning sgx-modules
@echo =====================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "sgx-modules*"`; \
make ARCH=arm KERNELDIR=$(LINUXKERNEL_INSTALL_DIR) clean sgx-modules_install:
@echo =====================================
@echo Installing sgx-modules
@echo =====================================
@if [ ! -d $(DESTDIR) ] ; then \
echo "The extracted target filesystem directory doesn't exist."; \
echo "Please run setup.sh in the SDK's root directory and then try again."; \
exit 1; \
fi
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "sgx-modules*"`; \
make -C $(LINUXKERNEL_INSTALL_DIR) SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) PREFIX=$(SDK_PATH_TARGET) modules_install
ti processor sdk linux am335x evm Makefile hacking的更多相关文章
- ti processor sdk linux am335x evm setup.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm setup.sh hacking # 说明: # 本文主要对TI的sdk中的setup.sh脚本进行解读 ...
- ti processor sdk linux am335x evm /bin/setup-host-check.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-host-check.sh hacking # 说明: # 本文主要对TI的sdk ...
- ti processor sdk linux am335x evm /bin/create-sdcard.sh hacking
#!/bin/bash # # ti processor sdk linux am335x evm /bin/create-sdcard.sh hacking # 说明: # 本文主要对TI的sdk中 ...
- ti processor sdk linux am335x evm /bin/unshallow-repositories.sh hacking
#!/bin/bash # # ti processor sdk linux am335x evm /bin/unshallow-repositories.sh hacking # 说明: # 本文主 ...
- ti processor sdk linux am335x evm /bin/setup-package-install.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-package-install.sh hacking # 说明: # 本文主要对T ...
- ti processor sdk linux am335x evm /bin/setup-uboot-env.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-uboot-env.sh hacking # 说明: # 本文主要对TI的sdk中 ...
- ti processor sdk linux am335x evm /bin/setup-minicom.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-minicom.sh hacking # 说明: # 本文主要对TI的sdk中的s ...
- ti processor sdk linux am335x evm /bin/setup-targetfs-nfs.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-targetfs-nfs.sh hacking # 说明: # 本文主要对TI的s ...
- ti processor sdk linux am335x evm /bin/setup-tftp.sh hacking
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-tftp.sh hacking # 说明: # 本文主要对TI的sdk中的setu ...
随机推荐
- MAC 13信道
房东的路由器一直连不上,手机却能连上,前天设置了13信道,后来又忘了,最后找到个连接WIFI的方法,在网络偏好设置里选择向导,诊断中可以连上wifi.
- git/github在windows上使用
问题描述: git在Windows上的使用 问题解决: (1)下载安装git http://msysgit.github.io/ 到该网址中下载msgit软件 注: 安装msg ...
- NYOJ-469 擅长排列的小明 II AC 分类: NYOJ 2014-01-02 22:19 159人阅读 评论(0) 收藏
最初的第一印象是和组合数一个性质的题目.所以用了回溯法,结果,你懂的... #include<stdio.h> #include<math.h> void dfs(int n, ...
- nenu contest3
http://vjudge.net/contest/view.action?cid=55702#overview 12656 - Almost Palindrome http://uva.online ...
- 通过WebBrowser获取网页验证码
/// <summary> /// 返回指定WebBrowser中图片<IMG></IMG>中的图内容 /// </summary> /// <p ...
- Castle 开发系统文章
转: http://www.cnblogs.com/Jebel/archive/2008/06/24/1228766.html
- 无法将 lambda 表达式 转换为类型“System.Delegate”,因为它不是委托类型
this.BeginInvoke(() => { this.btnQuery.Enabled = false; //禁用查询 }); 跨线程调用时,编译上面的代码将提示 对于Control.In ...
- HTTP/2 对 Web 性能的影响(下)
一.前言 我们在 HTTP/2 对 Web 性能的影响(上)已经和大家分享了一些关于 Http2 的二项制帧.多用复路以及 APM 工具等,本文作为姊妹篇,主要从 http2 对 Web 性能的影响. ...
- C# 中使用JSON - DataContractJsonSerializer
C#中使用JSON不需要使用第三方库,使用.NET Framwork3.5自带的System.Runtime.Serialization.Json即可很好的完成JSON的解析. 关于JSON的入门介绍 ...
- Android ActionBar下拉选项
package com.example.actionBarTest.actionBarList; import android.app.ActionBar; import android.app.Ac ...