www.pudn.com > pthread_examples.rar > Make.context
###################################################################### # Cadenux/arm9-2.6/build/Make.context # # This script "knows" the operating context of the BSP. It knows # all directory structures and the versions of all versioned files. # It should be included by all other shell scripts. context is # the counterpart to this file for shell scripts. # # DEVDIR must be defined by the includer of this makefile fragment. # $(DEVDIR)/Make.defs must be included before including this file # ###################################################################### ###################################################################### # Check included followed the rules ###################################################################### ifeq ($(DEVDIR),) $(error error DEVDIR not defined) endif ifeq ($(CADENUX_TOOLCHAIN),) $(error error/Make.defs not included) endif ###################################################################### # Architecture specific definitions ###################################################################### TARGET = arm-linux LINUX_VERSION = 2.6.4-cadenux ###################################################################### # Identify Directories ###################################################################### TOOL_DIR = ${CADENUX_TOOLCHAIN} TOOL_BINDIR = ${TOOL_DIR}/bin TOOL_ARCHDIR = ${TOOL_DIR}/arm-linux TOOL_INCDIR = ${TOOL_ARCHDIR}/include TOOL_LIBDIR = ${TOOL_ARCHDIR}/lib TOOL_ARCHBINDIR = ${TOOL_ARCHDIR}/bin TOOL_LINUX_INCDIR = ${TOOL_INCDIR}/linux TOOL_ASM_INCDIR = ${TOOL_INCDIR}/asm TOOL_SYSINCDIR = ${TOOL_DIR}/arm-linux/sys-include TOOL_LINUX_SYSINCDIR = ${TOOL_SYSINCDIR}/linux TOOL_ASM_SYSINCDIR = ${TOOL_SYSINCDIR}/asm-arm TFTPBOOT = /tftpboot BUILD_DIR = ${DEVDIR}/build LOGO_DIR = ${BUILD_DIR}/logo RRLOAD_DIR = ${DEVDIR}/rrload UMON_DIR = ${DEVDIR}/umon UMON_MAKE_DIR = ${UMON_DIR}/targets/csb337/monitor UMON_TOOLS_DIR = ${UMON_DIR}/tools KERNEL_DIR = ${DEVDIR}/linux KERNEL_INCDIR = ${KERNEL_DIR}/include KERNEL_ASM_INCDIR = ${KERNEL_INCDIR}/asm KERNEL_ARM_BASENAME = asm-arm KERNEL_ARM_INCDIR = ${KERNEL_INCDIR}/${KERNEL_ARM_BASENAME} KERNEL_ARCH_INCDIR = ${KERNEL_ARM_INCDIR}/arch KERNEL_PLATFORM_BASENAME = arch-${CADENUX_ARCH} KERNEL_PLATFORM_INCDIR = ${KERNEL_ARM_INCDIR}/${KERNEL_PLATFORM_BASENAME} KERNEL_PROC_INCDIR = ${KERNEL_ARM_INCDIR}/proc KERNEL_PROCARM_BASENAME = proc-armv KERNEL_PROCARM_INCDIR = ${KERNEL_ARM_INCDIR}/${PROCARM_BASENAME} KERNEL_LINUX_INCDIR = ${KERNEL_INCDIR}/linux FS_DIR = ${DEVDIR}/fs FSROOT_DIR = ${FS_DIR}/fs USERLAND_DIR = ${FS_DIR}/userland BUSYBOX_DIR = ${USERLAND_DIR}/busybox TINYLOGIN_DIR = ${USERLAND_DIR}/tinylogin INETUTILS_DIR = ${USERLAND_DIR}/inetutils PPP_DIR = ${USERLAND_DIR}/ppp BOA_DIR = ${USERLAND_DIR}/boa DHCPCD_DIR = ${USERLAND_DIR}/dhcpcd FSSCRIPTS_DIR = ${USERLAND_DIR}/common-scripts FSFDISK_DIR = ${USERLAND_DIR}/fdisk DOSFSTOOLS_DIR = ${USERLAND_DIR}/dosfstools FSEXPAND_DIR = ${USERLAND_DIR}/expand POPTART_DIR = ${USERLAND_DIR}/poptart SMTPCLIENT_DIR = ${USERLAND_DIR}/smtpclient PPPD_DIR = ${USERLAND_DIR}/ppp FSMKFSMINIX_DIR = ${USERLAND_DIR}/mkfs_minix GFFS_DIR = ${USERLAND_DIR}/gffs FSMODULES_DIR = ${FS_DIR}/modules EXAMPLES_DIR = ${FS_DIR}/examples TESTS_DIR = ${FS_DIR}/tests TARGET_EXAMPLES_DIR = $(DEVDIR)/fs/fs/examples TARGET_LIB_DIR = $(DEVDIR)/fs/fs/lib TARGET_USR_BIN_DIR = $(DEVDIR)/fs/fs/usr/bin CADENUX_DIR = ${DEVDIR}/Cadenux CADENUX_BUILD_DIR = ${CADENUX_DIR}/build CONFIG_TOOLS_DIR = ${DEVDIR}/config-tools ###################################################################### # Identify Files ###################################################################### TOOL_PREFIX = ${TOOL_BINDIR}/arm-linux- ###################################################################### # Identify Tools ###################################################################### HOSTCC = gcc MKIMAGE = $(BUILD_DIR)/mkimage MKCCSDATA = $(BUILD_DIR)/mkccsdata STRIP = $(TOOL_PREFIX)strip OBJCOPY = $(TOOL_PREFIX)objcopy HOLES = $(TOOL_PREFIX)holes GZIP = gzip GENROMFS = genromfs MKCRAMFS = mkcramfs MKJFFS = $(TOOL_PREFIX)mkjffs MKJFFS2 = $(TOOL_PREFIX)mkjffs2 MKFSEXT2 = /sbin/mkfs.ext2 FSCKEXT2 = /sbin/fsck.ext2 MKFSEXT3 = /sbin/mkfs.ext3 FSCKEXT3 = /sbin/fsck.ext3 ifeq ("${SU}","") SU_CMD = su -c else SU_CMD = ${SU} sh -c endif