t-kernel team mailing list archive
-
t-kernel team
-
Mailing list archive
-
Message #00097
[PATCH] Makefile: sysdepends/* lib/* kernel/*
From: Du Huanpeng <u74147@xxxxxxxxx>
Signed-off-by: Du Huanpeng <u74147@xxxxxxxxx>
---
tkernel_source/kernel/Makefile | 5 +
tkernel_source/kernel/extension/Makefile | 2 +
tkernel_source/kernel/extension/memory/Makefile | 1 +
.../kernel/extension/memory/nommu/Makefile | 2 +
tkernel_source/kernel/extension/startup/Makefile | 1 +
.../kernel/extension/startup/noext/Makefile | 1 +
tkernel_source/kernel/sysinit/Makefile | 4 +
tkernel_source/kernel/sysmain/Makefile | 3 +
tkernel_source/kernel/sysmgr/Makefile | 6 +
tkernel_source/lib/Makefile | 6 +
tkernel_source/lib/crt/Makefile | 1 +
tkernel_source/lib/crt/crttk/Makefile | 1 +
tkernel_source/lib/libdrvif/Makefile | 2 +
tkernel_source/lib/libstr/Makefile | 1 +
tkernel_source/lib/libsys/Makefile | 20 ++
tkernel_source/lib/libtk/Makefile | 24 ++
tkernel_source/lib/libtm/Makefile | 16 ++
tkernel_source/sysdepend/arm/Kconfig | 4 +-
tkernel_source/sysdepend/arm/Makefile | 307 +--------------------
tkernel_source/sysdepend/arm/Makefile.linux | 304 ++++++++++++++++++++
tkernel_source/sysdepend/arm/kernel/Makefile | 1 +
tkernel_source/sysdepend/arm/kernel/cpu/Makefile | 5 +
tkernel_source/sysdepend/arm/lib/Makefile | 3 +
tkernel_source/sysdepend/arm/lib/crt/Makefile | 2 +
tkernel_source/sysdepend/arm/lib/crt/crt0/Makefile | 6 +
.../sysdepend/arm/lib/crt/crttk/Makefile | 1 +
tkernel_source/sysdepend/arm/lib/libsvc/Makefile | 238 ++++++++++++++++
tkernel_source/sysdepend/arm/lib/libtk/Makefile | 7 +
tkernel_source/sysdepend/arm/mach-em1d/Makefile | 7 +
tkernel_source/sysdepend/arm/mach-mx28/Makefile | 7 +
30 files changed, 683 insertions(+), 305 deletions(-)
create mode 100644 tkernel_source/kernel/Makefile
create mode 100644 tkernel_source/kernel/extension/Makefile
create mode 100644 tkernel_source/kernel/extension/memory/Makefile
create mode 100644 tkernel_source/kernel/extension/memory/nommu/Makefile
create mode 100644 tkernel_source/kernel/extension/startup/Makefile
create mode 100644 tkernel_source/kernel/extension/startup/noext/Makefile
create mode 100644 tkernel_source/kernel/sysinit/Makefile
create mode 100644 tkernel_source/kernel/sysmain/Makefile
create mode 100644 tkernel_source/kernel/sysmgr/Makefile
create mode 100644 tkernel_source/lib/Makefile
create mode 100644 tkernel_source/lib/crt/Makefile
create mode 100644 tkernel_source/lib/crt/crttk/Makefile
create mode 100644 tkernel_source/lib/libdrvif/Makefile
create mode 100644 tkernel_source/lib/libstr/Makefile
create mode 100644 tkernel_source/lib/libsys/Makefile
create mode 100644 tkernel_source/lib/libtk/Makefile
create mode 100644 tkernel_source/lib/libtm/Makefile
create mode 100644 tkernel_source/sysdepend/arm/Makefile.linux
create mode 100644 tkernel_source/sysdepend/arm/kernel/Makefile
create mode 100644 tkernel_source/sysdepend/arm/kernel/cpu/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/crt/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/crt/crt0/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/crt/crttk/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/libsvc/Makefile
create mode 100644 tkernel_source/sysdepend/arm/lib/libtk/Makefile
create mode 100644 tkernel_source/sysdepend/arm/mach-em1d/Makefile
create mode 100644 tkernel_source/sysdepend/arm/mach-mx28/Makefile
diff --git a/tkernel_source/kernel/Makefile b/tkernel_source/kernel/Makefile
new file mode 100644
index 0000000..67da363
--- /dev/null
+++ b/tkernel_source/kernel/Makefile
@@ -0,0 +1,5 @@
+obj-y += extension/
+obj-y += sysinit/
+obj-y += sysmain/
+obj-y += sysmgr/
+obj-y += tkernel/
diff --git a/tkernel_source/kernel/extension/Makefile b/tkernel_source/kernel/extension/Makefile
new file mode 100644
index 0000000..9798100
--- /dev/null
+++ b/tkernel_source/kernel/extension/Makefile
@@ -0,0 +1,2 @@
+obj-y += memory/
+obj-y += startup/
diff --git a/tkernel_source/kernel/extension/memory/Makefile b/tkernel_source/kernel/extension/memory/Makefile
new file mode 100644
index 0000000..4981ee9
--- /dev/null
+++ b/tkernel_source/kernel/extension/memory/Makefile
@@ -0,0 +1 @@
+obj-y += nommu/
diff --git a/tkernel_source/kernel/extension/memory/nommu/Makefile b/tkernel_source/kernel/extension/memory/nommu/Makefile
new file mode 100644
index 0000000..8a5936e
--- /dev/null
+++ b/tkernel_source/kernel/extension/memory/nommu/Makefile
@@ -0,0 +1,2 @@
+obj-y += memmgr.o
+obj-y += segmgr.o
diff --git a/tkernel_source/kernel/extension/startup/Makefile b/tkernel_source/kernel/extension/startup/Makefile
new file mode 100644
index 0000000..1746e9e
--- /dev/null
+++ b/tkernel_source/kernel/extension/startup/Makefile
@@ -0,0 +1 @@
+obj-y += noext/
diff --git a/tkernel_source/kernel/extension/startup/noext/Makefile b/tkernel_source/kernel/extension/startup/noext/Makefile
new file mode 100644
index 0000000..e989166
--- /dev/null
+++ b/tkernel_source/kernel/extension/startup/noext/Makefile
@@ -0,0 +1 @@
+obj-y += subsystem.o
diff --git a/tkernel_source/kernel/sysinit/Makefile b/tkernel_source/kernel/sysinit/Makefile
new file mode 100644
index 0000000..8d003fb
--- /dev/null
+++ b/tkernel_source/kernel/sysinit/Makefile
@@ -0,0 +1,4 @@
+obj-y += gdevcnf.o
+obj-y += gsyscnf.o
+obj-y += sysinit_main.o
+obj-y += sysstartup.o
diff --git a/tkernel_source/kernel/sysmain/Makefile b/tkernel_source/kernel/sysmain/Makefile
new file mode 100644
index 0000000..480ff7b
--- /dev/null
+++ b/tkernel_source/kernel/sysmain/Makefile
@@ -0,0 +1,3 @@
+obj-y += inittask_def.o
+obj-y += inittask_main.o
+obj-y += usermain.o
diff --git a/tkernel_source/kernel/sysmgr/Makefile b/tkernel_source/kernel/sysmgr/Makefile
new file mode 100644
index 0000000..f324dfc
--- /dev/null
+++ b/tkernel_source/kernel/sysmgr/Makefile
@@ -0,0 +1,6 @@
+obj-y += device.o
+obj-y += deviceio.o
+obj-y += imalloc.o
+obj-y += smmain.o
+obj-y += syslog.o
+obj-y += system.o
diff --git a/tkernel_source/lib/Makefile b/tkernel_source/lib/Makefile
new file mode 100644
index 0000000..6cc5c90
--- /dev/null
+++ b/tkernel_source/lib/Makefile
@@ -0,0 +1,6 @@
+obj-y += crt/
+obj-y += libdrvif/
+obj-y += libstr/
+obj-y += libsys/
+obj-y += libtk/
+obj-y += libtm/
diff --git a/tkernel_source/lib/crt/Makefile b/tkernel_source/lib/crt/Makefile
new file mode 100644
index 0000000..442839a
--- /dev/null
+++ b/tkernel_source/lib/crt/Makefile
@@ -0,0 +1 @@
+obj-y += crttk/
diff --git a/tkernel_source/lib/crt/crttk/Makefile b/tkernel_source/lib/crt/crttk/Makefile
new file mode 100644
index 0000000..2c4996f
--- /dev/null
+++ b/tkernel_source/lib/crt/crttk/Makefile
@@ -0,0 +1 @@
+obj-y += pstartup.o
diff --git a/tkernel_source/lib/libdrvif/Makefile b/tkernel_source/lib/libdrvif/Makefile
new file mode 100644
index 0000000..b51dc05
--- /dev/null
+++ b/tkernel_source/lib/libdrvif/Makefile
@@ -0,0 +1,2 @@
+obj-y += gdrvif.o
+obj-y += sdrvif.o
diff --git a/tkernel_source/lib/libstr/Makefile b/tkernel_source/lib/libstr/Makefile
new file mode 100644
index 0000000..f6fde72
--- /dev/null
+++ b/tkernel_source/lib/libstr/Makefile
@@ -0,0 +1 @@
+obj-y += string.o
diff --git a/tkernel_source/lib/libsys/Makefile b/tkernel_source/lib/libsys/Makefile
new file mode 100644
index 0000000..770b9e5
--- /dev/null
+++ b/tkernel_source/lib/libsys/Makefile
@@ -0,0 +1,20 @@
+obj-y += bitclr.o
+obj-y += bitnot.o
+obj-y += bitsclr.o
+obj-y += bitsearch0.o
+obj-y += bitsearch1.o
+obj-y += bitset.o
+obj-y += bitsset.o
+obj-y += bittest.o
+obj-y += logmask.o
+obj-y += quesearch.o
+obj-y += quesearchge.o
+obj-y += quesearchgeu.o
+obj-y += quesearchgt.o
+obj-y += quesearchgtub.o
+obj-y += quesearchh.o
+obj-y += quesearchne.o
+obj-y += quesearchneh.o
+obj-y += quesearchrevltu.o
+obj-y += setlogmask.o
+obj-y += syslog.o
diff --git a/tkernel_source/lib/libtk/Makefile b/tkernel_source/lib/libtk/Makefile
new file mode 100644
index 0000000..e877435
--- /dev/null
+++ b/tkernel_source/lib/libtk/Makefile
@@ -0,0 +1,24 @@
+obj-y += chkspc2.o
+obj-y += chkspc3.o
+obj-y += chkspc.o
+obj-y += _commarea.o
+obj-y += dbgmode.o
+obj-y += _exit.o
+obj-y += fastlock.o
+obj-y += fastmlock.o
+obj-y += fsrcvmode.o
+obj-y += getdembf.o
+obj-y += kmalloc.o
+obj-y += kmcheck.o
+obj-y += knlinit.o
+obj-y += libinit.o
+obj-y += liblock.o
+obj-y += malloc.o
+obj-y += memalloc.o
+obj-y += memcheck.o
+obj-y += smalloc.o
+obj-y += smcheck.o
+obj-y += startup_elf.o
+obj-y += tkminit.o
+obj-y += vmalloc.o
+obj-y += vmcheck.o
diff --git a/tkernel_source/lib/libtm/Makefile b/tkernel_source/lib/libtm/Makefile
new file mode 100644
index 0000000..df9917f
--- /dev/null
+++ b/tkernel_source/lib/libtm/Makefile
@@ -0,0 +1,16 @@
+obj-y += _getchar.o
+obj-y += _getstring.o
+obj-y += _putchar.o
+obj-y += _putstring.o
+obj-y += tm_command.o
+obj-y += tm_exit.o
+obj-y += tm_extsvc.o
+obj-y += tm_getchar.o
+obj-y += tm_getline.o
+obj-y += tm_infodisk.o
+obj-y += tm_monitor.o
+obj-y += tm_printf.o
+obj-y += tm_putchar.o
+obj-y += tm_putstring.o
+obj-y += tm_readdisk.o
+obj-y += tm_writedisk.o
diff --git a/tkernel_source/sysdepend/arm/Kconfig b/tkernel_source/sysdepend/arm/Kconfig
index 36ff923..3dde68b 100644
--- a/tkernel_source/sysdepend/arm/Kconfig
+++ b/tkernel_source/sysdepend/arm/Kconfig
@@ -440,8 +440,8 @@ config ARCH_FOOTBRIDGE
Support for systems based on the DC21285 companion chip
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
-config ARCH_NETX
- bool "Hilscher NetX based"
+config ARCH_MX28
+ bool "Freescale i.MX28 based"
select ARM_VIC
select CLKSRC_MMIO
select CPU_ARM926T
diff --git a/tkernel_source/sysdepend/arm/Makefile b/tkernel_source/sysdepend/arm/Makefile
index 4165592..c76235d 100644
--- a/tkernel_source/sysdepend/arm/Makefile
+++ b/tkernel_source/sysdepend/arm/Makefile
@@ -1,304 +1,5 @@
-#
-# sysdepend/arm/Makefile
-#
-# This file is included by the global makefile so that you can add your own
-# architecture-specific flags and dependencies.
-#
-# This file is subject to the terms and conditions of the GNU General Public
-# License. See the file "COPYING" in the main directory of this archive
-# for more details.
-#
-# Copyright (C) 1995-2001 by Russell King
+obj-y += kernel/
+obj-y += lib/
+obj-$(CONFIG_ARCH_EM1D) += mach-em1d/
+obj-$(CONFIG_ARCH_MX28) += mach-mx28/
-# Ensure linker flags are correct
-LDFLAGS :=
-
-LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer
-ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
-LDFLAGS_vmlinux += --be8
-LDFLAGS_MODULE += --be8
-endif
-
-OBJCOPYFLAGS :=-O binary -R .comment -S
-GZFLAGS :=-9
-#KBUILD_CFLAGS +=-pipe
-
-# Never generate .eh_frame
-KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
-
-# Do not use sysdepend/arm/defconfig - it's always outdated.
-# Select a platform tht is kept up-to-date
-KBUILD_DEFCONFIG := versatile_defconfig
-
-# defines filename extension depending memory management type.
-ifeq ($(CONFIG_MMU),)
-MMUEXT := -nommu
-KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access)
-endif
-
-ifeq ($(CONFIG_FRAME_POINTER),y)
-KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
-endif
-
-ifeq ($(CONFIG_CPU_BIG_ENDIAN),y)
-KBUILD_CPPFLAGS += -mbig-endian
-AS += -EB
-LD += -EB
-else
-KBUILD_CPPFLAGS += -mlittle-endian
-AS += -EL
-LD += -EL
-endif
-
-#
-# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and
-# later may result in code being generated that handles signed short and signed
-# char struct members incorrectly. So disable it.
-# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932)
-#
-KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra)
-
-# This selects which instruction set is used.
-# Note that GCC does not numerically define an architecture version
-# macro, but instead defines a whole series of macros which makes
-# testing for a specific architecture or later rather impossible.
-arch-$(CONFIG_CPU_32v7M) =-D__TRON_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m
-arch-$(CONFIG_CPU_32v7) =-D__TRON_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
-arch-$(CONFIG_CPU_32v6) =-D__TRON_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
-# Only override the compiler option if ARMv6. The ARMv6K extensions are
-# always available in ARMv7
-ifeq ($(CONFIG_CPU_32v6),y)
-arch-$(CONFIG_CPU_32v6K) =-D__TRON_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k)
-endif
-arch-$(CONFIG_CPU_32v5) =-D__TRON_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t)
-arch-$(CONFIG_CPU_32v4T) =-D__TRON_ARM_ARCH__=4 -march=armv4t
-arch-$(CONFIG_CPU_32v4) =-D__TRON_ARM_ARCH__=4 -march=armv4
-arch-$(CONFIG_CPU_32v3) =-D__TRON_ARM_ARCH__=3 -march=armv3
-
-# Evaluate arch cc-option calls now
-arch-y := $(arch-y)
-
-# This selects how we optimise for the processor.
-tune-$(CONFIG_CPU_ARM7TDMI) =-mtune=arm7tdmi
-tune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi
-tune-$(CONFIG_CPU_ARM740T) =-mtune=arm7tdmi
-tune-$(CONFIG_CPU_ARM9TDMI) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_ARM940T) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_ARM946E) =$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi)
-tune-$(CONFIG_CPU_ARM920T) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_ARM922T) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_ARM925T) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_ARM926T) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_FA526) =-mtune=arm9tdmi
-tune-$(CONFIG_CPU_SA110) =-mtune=strongarm110
-tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100
-tune-$(CONFIG_CPU_XSCALE) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
-tune-$(CONFIG_CPU_XSC3) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
-tune-$(CONFIG_CPU_FEROCEON) =$(call cc-option,-mtune=marvell-f,-mtune=xscale)
-tune-$(CONFIG_CPU_V6) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
-tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
-
-# Evaluate tune cc-option calls now
-tune-y := $(tune-y)
-
-ifeq ($(CONFIG_AEABI),y)
-CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp
-else
-CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
-endif
-
-ifeq ($(CONFIG_ARM_UNWIND),y)
-CFLAGS_ABI +=-funwind-tables
-endif
-
-ifeq ($(CONFIG_THUMB2_KERNEL),y)
-AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
-AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
-CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN)
-AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
-# Work around buggy relocation from gas if requested:
-ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y)
-CFLAGS_MODULE +=-fno-optimize-sibling-calls
-endif
-else
-CFLAGS_ISA :=$(call cc-option,-marm,)
-AFLAGS_ISA :=$(CFLAGS_ISA)
-endif
-
-# Need -Uarm for gcc < 3.x
-KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
-KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float
-
-CHECKFLAGS += -D__arm__
-
-#Default value
-head-y := arch/arm/kernel/head$(MMUEXT).o
-
-# Text offset. This list is sorted numerically by address in order to
-# provide a means to avoid/resolve conflicts in multi-arch kernels.
-textofs-y := 0x00008000
-textofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000
-# We don't want the htc bootloader to corrupt kernel during resume
-textofs-$(CONFIG_PM_H1940) := 0x00108000
-# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory
-ifeq ($(CONFIG_ARCH_SA1100),y)
-textofs-$(CONFIG_SA1111) := 0x00208000
-endif
-textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000
-textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000
-textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
-
-# Machine directory name. This list is sorted alphanumerically
-# by CONFIG_* macro name.
-machine-$(CONFIG_ARCH_AT91) += at91
-machine-$(CONFIG_ARCH_MXC) += imx
-machine-$(CONFIG_ARCH_REALVIEW) += realview
-machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx
-machine-$(CONFIG_ARCH_S5PV210) += s5pv210
-
-# Platform directory name. This list is sorted alphanumerically
-# by CONFIG_* macro name.
-plat-$(CONFIG_ARCH_EXYNOS) += samsung
-plat-$(CONFIG_ARCH_OMAP) += omap
-plat-$(CONFIG_ARCH_S3C64XX) += samsung
-plat-$(CONFIG_ARCH_S5PV210) += samsung
-plat-$(CONFIG_PLAT_IOP) += iop
-plat-$(CONFIG_PLAT_ORION) += orion
-plat-$(CONFIG_PLAT_PXA) += pxa
-plat-$(CONFIG_PLAT_S3C24XX) += samsung
-plat-$(CONFIG_PLAT_VERSATILE) += versatile
-
-ifeq ($(CONFIG_ARCH_EBSA110),y)
-# This is what happens if you forget the IOCS16 line.
-# PCMCIA cards stop working.
-CFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL
-export CFLAGS_3c589_cs.o
-endif
-
-# The byte offset of the kernel image in RAM from the start of RAM.
-TEXT_OFFSET := $(textofs-y)
-
-# The first directory contains additional information for the boot setup code
-ifneq ($(machine-y),)
-MACHINE := arch/arm/mach-$(word 1,$(machine-y))/
-else
-MACHINE :=
-endif
-ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y)
-MACHINE :=
-endif
-
-machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
-platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y)))
-
-ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y)
-ifeq ($(KBUILD_SRC),)
-KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs))
-else
-KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs))
-endif
-endif
-
-export TEXT_OFFSET GZFLAGS MMUEXT
-
-# Do we have FASTFPE?
-FASTFPE :=arch/arm/fastfpe
-ifeq ($(FASTFPE),$(wildcard $(FASTFPE)))
-FASTFPE_OBJ :=$(FASTFPE)/
-endif
-
-core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/
-core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ)
-core-$(CONFIG_VFP) += arch/arm/vfp/
-core-$(CONFIG_XEN) += arch/arm/xen/
-core-$(CONFIG_KVM_ARM_HOST) += arch/arm/kvm/
-core-$(CONFIG_VDSO) += arch/arm/vdso/
-
-# If we have a machine-specific directory, then include it in the build.
-core-y += sysdepend/arm/kernel/ sysdepend/arm/mm/ sysdepend/arm/common/
-core-y += sysdepend/arm/probes/
-core-y += sysdepend/arm/net/
-core-y += sysdepend/arm/crypto/
-core-y += sysdepend/arm/firmware/
-core-y += $(machdirs) $(platdirs)
-
-drivers-$(CONFIG_OPROFILE) += sysdepend/arm/oprofile/
-
-libs-y := sysdepend/arm/lib/ $(libs-y)
-
-# Default target when executing plain make
-ifeq ($(CONFIG_XIP_KERNEL),y)
-KBUILD_IMAGE := xipImage
-else
-KBUILD_IMAGE := zImage
-endif
-
-# Build the DT binary blobs if we have OF configured
-ifeq ($(CONFIG_USE_OF),y)
-KBUILD_DTBS := dtbs
-endif
-
-all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
-
-boot := sysdepend/arm/boot
-
-archprepare:
- $(Q)$(MAKE) $(build)=sysdepend/arm/tools include/generated/mach-types.h
-
-# Convert bzImage to zImage
-bzImage: zImage
-
-BOOT_TARGETS = zImage Image xipImage bootpImage uImage
-INSTALL_TARGETS = zinstall uinstall install
-
-PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS)
-
-$(BOOT_TARGETS): vmlinux
- $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
-
-$(INSTALL_TARGETS):
- $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
-
-%.dtb: | scripts
- $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
-
-PHONY += dtbs dtbs_install
-
-dtbs: prepare scripts
- $(Q)$(MAKE) $(build)=$(boot)/dts
-
-dtbs_install:
- $(Q)$(MAKE) $(dtbinst)=$(boot)/dts
-
-PHONY += vdso_install
-vdso_install:
-ifeq ($(CONFIG_VDSO),y)
- $(Q)$(MAKE) $(build)=sysdepend/arm/vdso $@
-endif
-
-# We use MRPROPER_FILES and CLEAN_FILES now
-archclean:
- $(Q)$(MAKE) $(clean)=$(boot)
-
-# My testing targets (bypasses dependencies)
-bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage
-i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
-
-
-define archhelp
- echo '* zImage - Compressed kernel image (sysdepend/$(ARCH)/boot/zImage)'
- echo ' Image - Uncompressed kernel image (sysdepend/$(ARCH)/boot/Image)'
- echo '* xipImage - XIP kernel image, if configured (sysdepend/$(ARCH)/boot/xipImage)'
- echo ' uImage - U-Boot wrapped zImage'
- echo ' bootpImage - Combined zImage and initial RAM disk'
- echo ' (supply initrd image via make variable INITRD=<path>)'
- echo '* dtbs - Build device tree blobs for enabled boards'
- echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
- echo ' install - Install uncompressed kernel'
- echo ' zinstall - Install compressed kernel'
- echo ' uinstall - Install U-Boot wrapped compressed kernel'
- echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or'
- echo ' (distribution) /sbin/$(INSTALLKERNEL) or'
- echo ' install to $$(INSTALL_PATH) and run lilo'
- echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso'
-endef
diff --git a/tkernel_source/sysdepend/arm/Makefile.linux b/tkernel_source/sysdepend/arm/Makefile.linux
new file mode 100644
index 0000000..4165592
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/Makefile.linux
@@ -0,0 +1,304 @@
+#
+# sysdepend/arm/Makefile
+#
+# This file is included by the global makefile so that you can add your own
+# architecture-specific flags and dependencies.
+#
+# This file is subject to the terms and conditions of the GNU General Public
+# License. See the file "COPYING" in the main directory of this archive
+# for more details.
+#
+# Copyright (C) 1995-2001 by Russell King
+
+# Ensure linker flags are correct
+LDFLAGS :=
+
+LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer
+ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
+LDFLAGS_vmlinux += --be8
+LDFLAGS_MODULE += --be8
+endif
+
+OBJCOPYFLAGS :=-O binary -R .comment -S
+GZFLAGS :=-9
+#KBUILD_CFLAGS +=-pipe
+
+# Never generate .eh_frame
+KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
+
+# Do not use sysdepend/arm/defconfig - it's always outdated.
+# Select a platform tht is kept up-to-date
+KBUILD_DEFCONFIG := versatile_defconfig
+
+# defines filename extension depending memory management type.
+ifeq ($(CONFIG_MMU),)
+MMUEXT := -nommu
+KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access)
+endif
+
+ifeq ($(CONFIG_FRAME_POINTER),y)
+KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
+endif
+
+ifeq ($(CONFIG_CPU_BIG_ENDIAN),y)
+KBUILD_CPPFLAGS += -mbig-endian
+AS += -EB
+LD += -EB
+else
+KBUILD_CPPFLAGS += -mlittle-endian
+AS += -EL
+LD += -EL
+endif
+
+#
+# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and
+# later may result in code being generated that handles signed short and signed
+# char struct members incorrectly. So disable it.
+# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932)
+#
+KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra)
+
+# This selects which instruction set is used.
+# Note that GCC does not numerically define an architecture version
+# macro, but instead defines a whole series of macros which makes
+# testing for a specific architecture or later rather impossible.
+arch-$(CONFIG_CPU_32v7M) =-D__TRON_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m
+arch-$(CONFIG_CPU_32v7) =-D__TRON_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
+arch-$(CONFIG_CPU_32v6) =-D__TRON_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
+# Only override the compiler option if ARMv6. The ARMv6K extensions are
+# always available in ARMv7
+ifeq ($(CONFIG_CPU_32v6),y)
+arch-$(CONFIG_CPU_32v6K) =-D__TRON_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k)
+endif
+arch-$(CONFIG_CPU_32v5) =-D__TRON_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t)
+arch-$(CONFIG_CPU_32v4T) =-D__TRON_ARM_ARCH__=4 -march=armv4t
+arch-$(CONFIG_CPU_32v4) =-D__TRON_ARM_ARCH__=4 -march=armv4
+arch-$(CONFIG_CPU_32v3) =-D__TRON_ARM_ARCH__=3 -march=armv3
+
+# Evaluate arch cc-option calls now
+arch-y := $(arch-y)
+
+# This selects how we optimise for the processor.
+tune-$(CONFIG_CPU_ARM7TDMI) =-mtune=arm7tdmi
+tune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi
+tune-$(CONFIG_CPU_ARM740T) =-mtune=arm7tdmi
+tune-$(CONFIG_CPU_ARM9TDMI) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_ARM940T) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_ARM946E) =$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi)
+tune-$(CONFIG_CPU_ARM920T) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_ARM922T) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_ARM925T) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_ARM926T) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_FA526) =-mtune=arm9tdmi
+tune-$(CONFIG_CPU_SA110) =-mtune=strongarm110
+tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100
+tune-$(CONFIG_CPU_XSCALE) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
+tune-$(CONFIG_CPU_XSC3) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
+tune-$(CONFIG_CPU_FEROCEON) =$(call cc-option,-mtune=marvell-f,-mtune=xscale)
+tune-$(CONFIG_CPU_V6) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
+tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
+
+# Evaluate tune cc-option calls now
+tune-y := $(tune-y)
+
+ifeq ($(CONFIG_AEABI),y)
+CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp
+else
+CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
+endif
+
+ifeq ($(CONFIG_ARM_UNWIND),y)
+CFLAGS_ABI +=-funwind-tables
+endif
+
+ifeq ($(CONFIG_THUMB2_KERNEL),y)
+AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
+AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
+CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN)
+AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
+# Work around buggy relocation from gas if requested:
+ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y)
+CFLAGS_MODULE +=-fno-optimize-sibling-calls
+endif
+else
+CFLAGS_ISA :=$(call cc-option,-marm,)
+AFLAGS_ISA :=$(CFLAGS_ISA)
+endif
+
+# Need -Uarm for gcc < 3.x
+KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
+KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float
+
+CHECKFLAGS += -D__arm__
+
+#Default value
+head-y := arch/arm/kernel/head$(MMUEXT).o
+
+# Text offset. This list is sorted numerically by address in order to
+# provide a means to avoid/resolve conflicts in multi-arch kernels.
+textofs-y := 0x00008000
+textofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000
+# We don't want the htc bootloader to corrupt kernel during resume
+textofs-$(CONFIG_PM_H1940) := 0x00108000
+# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory
+ifeq ($(CONFIG_ARCH_SA1100),y)
+textofs-$(CONFIG_SA1111) := 0x00208000
+endif
+textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000
+textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000
+textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
+
+# Machine directory name. This list is sorted alphanumerically
+# by CONFIG_* macro name.
+machine-$(CONFIG_ARCH_AT91) += at91
+machine-$(CONFIG_ARCH_MXC) += imx
+machine-$(CONFIG_ARCH_REALVIEW) += realview
+machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx
+machine-$(CONFIG_ARCH_S5PV210) += s5pv210
+
+# Platform directory name. This list is sorted alphanumerically
+# by CONFIG_* macro name.
+plat-$(CONFIG_ARCH_EXYNOS) += samsung
+plat-$(CONFIG_ARCH_OMAP) += omap
+plat-$(CONFIG_ARCH_S3C64XX) += samsung
+plat-$(CONFIG_ARCH_S5PV210) += samsung
+plat-$(CONFIG_PLAT_IOP) += iop
+plat-$(CONFIG_PLAT_ORION) += orion
+plat-$(CONFIG_PLAT_PXA) += pxa
+plat-$(CONFIG_PLAT_S3C24XX) += samsung
+plat-$(CONFIG_PLAT_VERSATILE) += versatile
+
+ifeq ($(CONFIG_ARCH_EBSA110),y)
+# This is what happens if you forget the IOCS16 line.
+# PCMCIA cards stop working.
+CFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL
+export CFLAGS_3c589_cs.o
+endif
+
+# The byte offset of the kernel image in RAM from the start of RAM.
+TEXT_OFFSET := $(textofs-y)
+
+# The first directory contains additional information for the boot setup code
+ifneq ($(machine-y),)
+MACHINE := arch/arm/mach-$(word 1,$(machine-y))/
+else
+MACHINE :=
+endif
+ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y)
+MACHINE :=
+endif
+
+machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
+platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y)))
+
+ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y)
+ifeq ($(KBUILD_SRC),)
+KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs))
+else
+KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs))
+endif
+endif
+
+export TEXT_OFFSET GZFLAGS MMUEXT
+
+# Do we have FASTFPE?
+FASTFPE :=arch/arm/fastfpe
+ifeq ($(FASTFPE),$(wildcard $(FASTFPE)))
+FASTFPE_OBJ :=$(FASTFPE)/
+endif
+
+core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/
+core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ)
+core-$(CONFIG_VFP) += arch/arm/vfp/
+core-$(CONFIG_XEN) += arch/arm/xen/
+core-$(CONFIG_KVM_ARM_HOST) += arch/arm/kvm/
+core-$(CONFIG_VDSO) += arch/arm/vdso/
+
+# If we have a machine-specific directory, then include it in the build.
+core-y += sysdepend/arm/kernel/ sysdepend/arm/mm/ sysdepend/arm/common/
+core-y += sysdepend/arm/probes/
+core-y += sysdepend/arm/net/
+core-y += sysdepend/arm/crypto/
+core-y += sysdepend/arm/firmware/
+core-y += $(machdirs) $(platdirs)
+
+drivers-$(CONFIG_OPROFILE) += sysdepend/arm/oprofile/
+
+libs-y := sysdepend/arm/lib/ $(libs-y)
+
+# Default target when executing plain make
+ifeq ($(CONFIG_XIP_KERNEL),y)
+KBUILD_IMAGE := xipImage
+else
+KBUILD_IMAGE := zImage
+endif
+
+# Build the DT binary blobs if we have OF configured
+ifeq ($(CONFIG_USE_OF),y)
+KBUILD_DTBS := dtbs
+endif
+
+all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
+
+boot := sysdepend/arm/boot
+
+archprepare:
+ $(Q)$(MAKE) $(build)=sysdepend/arm/tools include/generated/mach-types.h
+
+# Convert bzImage to zImage
+bzImage: zImage
+
+BOOT_TARGETS = zImage Image xipImage bootpImage uImage
+INSTALL_TARGETS = zinstall uinstall install
+
+PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS)
+
+$(BOOT_TARGETS): vmlinux
+ $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
+
+$(INSTALL_TARGETS):
+ $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
+
+%.dtb: | scripts
+ $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
+
+PHONY += dtbs dtbs_install
+
+dtbs: prepare scripts
+ $(Q)$(MAKE) $(build)=$(boot)/dts
+
+dtbs_install:
+ $(Q)$(MAKE) $(dtbinst)=$(boot)/dts
+
+PHONY += vdso_install
+vdso_install:
+ifeq ($(CONFIG_VDSO),y)
+ $(Q)$(MAKE) $(build)=sysdepend/arm/vdso $@
+endif
+
+# We use MRPROPER_FILES and CLEAN_FILES now
+archclean:
+ $(Q)$(MAKE) $(clean)=$(boot)
+
+# My testing targets (bypasses dependencies)
+bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage
+i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
+
+
+define archhelp
+ echo '* zImage - Compressed kernel image (sysdepend/$(ARCH)/boot/zImage)'
+ echo ' Image - Uncompressed kernel image (sysdepend/$(ARCH)/boot/Image)'
+ echo '* xipImage - XIP kernel image, if configured (sysdepend/$(ARCH)/boot/xipImage)'
+ echo ' uImage - U-Boot wrapped zImage'
+ echo ' bootpImage - Combined zImage and initial RAM disk'
+ echo ' (supply initrd image via make variable INITRD=<path>)'
+ echo '* dtbs - Build device tree blobs for enabled boards'
+ echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
+ echo ' install - Install uncompressed kernel'
+ echo ' zinstall - Install compressed kernel'
+ echo ' uinstall - Install U-Boot wrapped compressed kernel'
+ echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or'
+ echo ' (distribution) /sbin/$(INSTALLKERNEL) or'
+ echo ' install to $$(INSTALL_PATH) and run lilo'
+ echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso'
+endef
diff --git a/tkernel_source/sysdepend/arm/kernel/Makefile b/tkernel_source/sysdepend/arm/kernel/Makefile
new file mode 100644
index 0000000..22b581f
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/kernel/Makefile
@@ -0,0 +1 @@
+obj-y += cpu/
diff --git a/tkernel_source/sysdepend/arm/kernel/cpu/Makefile b/tkernel_source/sysdepend/arm/kernel/cpu/Makefile
new file mode 100644
index 0000000..bea7d13
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/kernel/cpu/Makefile
@@ -0,0 +1,5 @@
+obj-y += cache.o
+obj-y += chkplv.o
+obj-y += cpu_calls.o
+obj-y += cpu_init.o
+obj-y += cpu_support.o
diff --git a/tkernel_source/sysdepend/arm/lib/Makefile b/tkernel_source/sysdepend/arm/lib/Makefile
new file mode 100644
index 0000000..56b5553
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/Makefile
@@ -0,0 +1,3 @@
+obj-y += crt/
+obj-y += libsvc/
+obj-y += libtk/
diff --git a/tkernel_source/sysdepend/arm/lib/crt/Makefile b/tkernel_source/sysdepend/arm/lib/crt/Makefile
new file mode 100644
index 0000000..830f163
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/crt/Makefile
@@ -0,0 +1,2 @@
+obj-y += crt0/
+obj-y += crttk/
diff --git a/tkernel_source/sysdepend/arm/lib/crt/crt0/Makefile b/tkernel_source/sysdepend/arm/lib/crt/crt0/Makefile
new file mode 100644
index 0000000..adb35ae
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/crt/crt0/Makefile
@@ -0,0 +1,6 @@
+obj-y += crt0.o
+obj-y += crt1f.o
+obj-y += crt1s.o
+obj-y += crtir.o
+obj-y += crti.o
+obj-y += crtn.o
diff --git a/tkernel_source/sysdepend/arm/lib/crt/crttk/Makefile b/tkernel_source/sysdepend/arm/lib/crt/crttk/Makefile
new file mode 100644
index 0000000..166066e
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/crt/crttk/Makefile
@@ -0,0 +1 @@
+obj-y += asmstartup.o
diff --git a/tkernel_source/sysdepend/arm/lib/libsvc/Makefile b/tkernel_source/sysdepend/arm/lib/libsvc/Makefile
new file mode 100644
index 0000000..0dd19dc
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/libsvc/Makefile
@@ -0,0 +1,238 @@
+obj-y += changespace.o
+obj-y += chkspacebstr.o
+obj-y += chkspacelen.o
+obj-y += chkspace.o
+obj-y += chkspacetstr.o
+obj-y += cnvphysicaladdr.o
+obj-y += console_conf.o
+obj-y += console_ctl.o
+obj-y += console_get.o
+obj-y += console_in.o
+obj-y += console_out.o
+obj-y += console_put.o
+obj-y += controlcache.o
+obj-y += flushmemcache.o
+obj-y += _getkernelcommonarea.o
+obj-y += getspaceinfo.o
+obj-y += lockspace.o
+obj-y += makespace.o
+obj-y += mapmemory.o
+obj-y += readmemspace.o
+obj-y += setcachemode.o
+obj-y += setmemoryaccess.o
+obj-y += setmemspaceb.o
+obj-y += _syslog_send.o
+obj-y += td_acp_que.o
+obj-y += td_cal_que.o
+obj-y += td_flg_que.o
+obj-y += td_get_otm.o
+obj-y += td_get_otm_u.o
+obj-y += td_get_reg.o
+obj-y += td_get_tim.o
+obj-y += td_get_tim_u.o
+obj-y += td_hok_dsp.o
+obj-y += td_hok_int.o
+obj-y += td_hok_svc.o
+obj-y += td_inf_tsk.o
+obj-y += td_inf_tsk_u.o
+obj-y += td_lst_alm.o
+obj-y += td_lst_cyc.o
+obj-y += td_lst_flg.o
+obj-y += td_lst_mbf.o
+obj-y += td_lst_mbx.o
+obj-y += td_lst_mpf.o
+obj-y += td_lst_mpl.o
+obj-y += td_lst_mtx.o
+obj-y += td_lst_por.o
+obj-y += td_lst_sem.o
+obj-y += td_lst_ssy.o
+obj-y += td_lst_tsk.o
+obj-y += td_mbx_que.o
+obj-y += td_mpf_que.o
+obj-y += td_mpl_que.o
+obj-y += td_mtx_que.o
+obj-y += td_rdy_que.o
+obj-y += td_ref_alm.o
+obj-y += td_ref_alm_u.o
+obj-y += td_ref_cyc.o
+obj-y += td_ref_cyc_u.o
+obj-y += td_ref_dsname.o
+obj-y += td_ref_flg.o
+obj-y += td_ref_mbf.o
+obj-y += td_ref_mbx.o
+obj-y += td_ref_mpf.o
+obj-y += td_ref_mpl.o
+obj-y += td_ref_mtx.o
+obj-y += td_ref_por.o
+obj-y += td_ref_sem.o
+obj-y += td_ref_ssy.o
+obj-y += td_ref_sys.o
+obj-y += td_ref_tex.o
+obj-y += td_ref_tsk.o
+obj-y += td_ref_tsk_u.o
+obj-y += td_rmbf_que.o
+obj-y += td_sem_que.o
+obj-y += td_set_dsname.o
+obj-y += td_set_reg.o
+obj-y += td_smbf_que.o
+obj-y += tk_acp_por.o
+obj-y += tk_acp_por_u.o
+obj-y += tk_cal_por.o
+obj-y += tk_cal_por_u.o
+obj-y += tk_can_wup.o
+obj-y += tk_chg_pri.o
+obj-y += tk_chg_slt.o
+obj-y += tk_chg_slt_u.o
+obj-y += tk_cln_ssy.o
+obj-y += tk_clr_flg.o
+obj-y += tk_cls_dev.o
+obj-y += tk_cre_alm.o
+obj-y += tk_cre_cyc.o
+obj-y += tk_cre_cyc_u.o
+obj-y += tk_cre_flg.o
+obj-y += tk_cre_mbf.o
+obj-y += tk_cre_mbx.o
+obj-y += tk_cre_mpf.o
+obj-y += tk_cre_mpl.o
+obj-y += tk_cre_mtx.o
+obj-y += tk_cre_por.o
+obj-y += tk_cre_res.o
+obj-y += tk_cre_sem.o
+obj-y += tk_cre_tsk.o
+obj-y += tk_def_dev.o
+obj-y += tk_def_int.o
+obj-y += tk_def_ssy.o
+obj-y += tk_def_tex.o
+obj-y += tk_del_alm.o
+obj-y += tk_del_cyc.o
+obj-y += tk_del_flg.o
+obj-y += tk_del_mbf.o
+obj-y += tk_del_mbx.o
+obj-y += tk_del_mpf.o
+obj-y += tk_del_mpl.o
+obj-y += tk_del_mtx.o
+obj-y += tk_del_por.o
+obj-y += tk_del_res.o
+obj-y += tk_del_sem.o
+obj-y += tk_del_tsk.o
+obj-y += tk_dis_dsp.o
+obj-y += tk_dis_tex.o
+obj-y += tk_dis_wai.o
+obj-y += tk_dly_tsk.o
+obj-y += tk_dly_tsk_u.o
+obj-y += tk_ena_dsp.o
+obj-y += tk_ena_tex.o
+obj-y += tk_ena_wai.o
+obj-y += tk_end_tex.o
+obj-y += tk_evt_dev.o
+obj-y += tk_evt_ssy.o
+obj-y += tk_exd_tsk.o
+obj-y += tk_ext_tsk.o
+obj-y += tk_frsm_tsk.o
+obj-y += tk_fwd_por.o
+obj-y += tk_get_cfn.o
+obj-y += tk_get_cfs.o
+obj-y += tk_get_cpr.o
+obj-y += tk_get_dev.o
+obj-y += tk_get_mpf.o
+obj-y += tk_get_mpf_u.o
+obj-y += tk_get_mpl.o
+obj-y += tk_get_mpl_u.o
+obj-y += tk_get_otm.o
+obj-y += tk_get_otm_u.o
+obj-y += tk_get_reg.o
+obj-y += tk_get_res.o
+obj-y += tk_get_rid.o
+obj-y += tk_get_smb.o
+obj-y += tk_get_tid.o
+obj-y += tk_get_tim.o
+obj-y += tk_get_tim_u.o
+obj-y += tk_get_tsp.o
+obj-y += tk_inf_tsk.o
+obj-y += tk_inf_tsk_u.o
+obj-y += tk_loc_mtx.o
+obj-y += tk_loc_mtx_u.o
+obj-y += tk_lst_dev.o
+obj-y += tk_opn_dev.o
+obj-y += tk_oref_dev.o
+obj-y += tk_ras_tex.o
+obj-y += tk_rcv_mbf.o
+obj-y += tk_rcv_mbf_u.o
+obj-y += tk_rcv_mbx.o
+obj-y += tk_rcv_mbx_u.o
+obj-y += tk_rea_dev_du.o
+obj-y += tk_rea_dev.o
+obj-y += tk_ref_alm.o
+obj-y += tk_ref_alm_u.o
+obj-y += tk_ref_cyc.o
+obj-y += tk_ref_cyc_u.o
+obj-y += tk_ref_dev.o
+obj-y += tk_ref_flg.o
+obj-y += tk_ref_idv.o
+obj-y += tk_ref_mbf.o
+obj-y += tk_ref_mbx.o
+obj-y += tk_ref_mpf.o
+obj-y += tk_ref_mpl.o
+obj-y += tk_ref_mtx.o
+obj-y += tk_ref_por.o
+obj-y += tk_ref_sem.o
+obj-y += tk_ref_smb.o
+obj-y += tk_ref_ssy.o
+obj-y += tk_ref_sys.o
+obj-y += tk_ref_tex.o
+obj-y += tk_ref_tsk.o
+obj-y += tk_ref_tsk_u.o
+obj-y += tk_ref_ver.o
+obj-y += tk_rel_mpf.o
+obj-y += tk_rel_mpl.o
+obj-y += tk_rel_smb.o
+obj-y += tk_rel_wai.o
+obj-y += tk_ret_int.o
+obj-y += tk_rot_rdq.o
+obj-y += tk_rpl_rdv.o
+obj-y += tk_rsm_tsk.o
+obj-y += tk_set_cpr.o
+obj-y += tk_set_flg.o
+obj-y += tk_set_pow.o
+obj-y += tk_set_reg.o
+obj-y += tk_set_rid.o
+obj-y += tk_set_tim.o
+obj-y += tk_set_tim_u.o
+obj-y += tk_set_tsp.o
+obj-y += tk_sig_sem.o
+obj-y += tk_sig_tev.o
+obj-y += tk_slp_tsk.o
+obj-y += tk_slp_tsk_u.o
+obj-y += tk_snd_mbf.o
+obj-y += tk_snd_mbf_u.o
+obj-y += tk_snd_mbx.o
+obj-y += tk_srea_dev_d.o
+obj-y += tk_srea_dev.o
+obj-y += tk_sta_alm.o
+obj-y += tk_sta_alm_u.o
+obj-y += tk_sta_cyc.o
+obj-y += tk_sta_ssy.o
+obj-y += tk_sta_tsk.o
+obj-y += tk_stp_alm.o
+obj-y += tk_stp_cyc.o
+obj-y += tk_sus_dev.o
+obj-y += tk_sus_tsk.o
+obj-y += tk_swri_dev_d.o
+obj-y += tk_swri_dev.o
+obj-y += tk_ter_tsk.o
+obj-y += tk_unl_mtx.o
+obj-y += tk_wai_dev.o
+obj-y += tk_wai_dev_u.o
+obj-y += tk_wai_flg.o
+obj-y += tk_wai_flg_u.o
+obj-y += tk_wai_sem.o
+obj-y += tk_wai_sem_u.o
+obj-y += tk_wai_tev.o
+obj-y += tk_wai_tev_u.o
+obj-y += tk_wri_dev_du.o
+obj-y += tk_wri_dev.o
+obj-y += tk_wup_tsk.o
+obj-y += unlockspace.o
+obj-y += unmakespace.o
+obj-y += unmapmemory.o
+obj-y += writememspace.o
diff --git a/tkernel_source/sysdepend/arm/lib/libtk/Makefile b/tkernel_source/sysdepend/arm/lib/libtk/Makefile
new file mode 100644
index 0000000..b0ae29f
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/lib/libtk/Makefile
@@ -0,0 +1,7 @@
+obj-y += disint.o
+obj-y += int.o
+obj-y += prreg.o
+obj-y += ptimer.o
+obj-y += setspc.o
+obj-y += waitnsec.o
+obj-y += waitusec.o
diff --git a/tkernel_source/sysdepend/arm/mach-em1d/Makefile b/tkernel_source/sysdepend/arm/mach-em1d/Makefile
new file mode 100644
index 0000000..56566e4
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/mach-em1d/Makefile
@@ -0,0 +1,7 @@
+obj-y += cntwus.o
+obj-y += devinit.o
+obj-y += icrt0_ram.o
+obj-y += icrt0.o
+obj-y += patch.o
+obj-y += power.o
+obj-y += tkdev_init.o
diff --git a/tkernel_source/sysdepend/arm/mach-mx28/Makefile b/tkernel_source/sysdepend/arm/mach-mx28/Makefile
new file mode 100644
index 0000000..56566e4
--- /dev/null
+++ b/tkernel_source/sysdepend/arm/mach-mx28/Makefile
@@ -0,0 +1,7 @@
+obj-y += cntwus.o
+obj-y += devinit.o
+obj-y += icrt0_ram.o
+obj-y += icrt0.o
+obj-y += patch.o
+obj-y += power.o
+obj-y += tkdev_init.o
--
1.9.1