lib-y := ctype.o string.o vsprintf.o cmdline.o \
	 rbtree.o radix-tree.o dump_stack.o timerqueue.o\
	 idr.o int_sqrt.o extable.o \
	 sha1.o md5.o irq_regs.o argv_split.o \
	 proportions.o flex_proportions.o ratelimit.o show_mem.o \
	 is_single_threaded.o plist.o decompress.o kobject_uevent.o \
	 earlycpio.o seq_buf.o nmi_backtrace.o

obj-y += usercopy.o

lib-y += ioremap.o
lib-y += cpumask.o

lib-y	+= kobject.o klist.o

obj-y	+= lockref.o

obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \
	 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
	 gcd.o lcm.o list_sort.o uuid.o flex_array.o iov_iter.o clz_ctz.o \
	 bsearch.o find_bit.o llist.o memweight.o kfifo.o \
	 percpu-refcount.o percpu_ida.o rhashtable.o reciprocal_div.o
obj-y += string_helpers.o
obj-y += test-string_helpers.o
obj-y += hexdump.o
obj-y += test-hexdump.o
obj-y += kstrtox.o
obj-y += test_bpf.o
obj-y += test_firmware.o
obj-y += test_kasan.o
obj-y += test-kstrtox.o
obj-y += test_module.o
obj-y += test_rhashtable.o
obj-y += test_user_copy.o
obj-y += test_static_keys.o
obj-y += test_static_key_base.o

#ifeq ($(CONFIG_DEBUG_KOBJECT),y)
#CFLAGS_kobject.o += -DDEBUG
#CFLAGS_kobject_uevent.o += -DDEBUG
#endif

obj-y += debug_info.o #version 4.2 add

obj-y += iomap.o
obj-y += pci_iomap.o
obj-y += iomap_copy.o devres.o
obj-y += check_signature.o
obj-y += locking-selftest.o

#GCOV_PROFILE_hweight.o := n
#CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS))
obj-y += hweight.o

obj-y += btree.o
obj-y += interval_tree.o
obj-y += assoc_array.o
obj-y += smp_processor_id.o
obj-y += list_debug.o
obj-y += debugobjects.o

lib-y += dec_and_lock.o

obj-y += bitrev.o
obj-y	+= rational.o
obj-y	+= crc-ccitt.o
obj-y	+= crc16.o
obj-y+= crc-t10dif.o
obj-y	+= crc-itu-t.o
obj-y	+= crc32.o
obj-y	+= crc7.o
obj-y	+= libcrc32c.o
obj-y	+= crc8.o
obj-y += genalloc.o

obj-y += 842/842_compress.o 842/842_decompress.o #version 4.2 add

#obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
#obj-y += zlib_inflate/zlib_inflate.o

obj-y += zlib_inflate/inffast.o zlib_inflate/inflate.o zlib_inflate/infutil.o \
		     zlib_inflate/inftrees.o zlib_inflate/inflate_syms.o

#obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
#obj-y += zlib_deflate/zlib_deflate.o

obj-y := zlib_deflate/deflate.o zlib_deflate/deftree.o zlib_deflate/deflate_syms.o

#obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
obj-y += reed_solomon/reed_solomon.o

obj-y += bch.o
#obj-$(CONFIG_LZO_COMPRESS) += lzo/
#obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
obj-y += lzo/lzo1x_compress.o
obj-y += lzo/lzo1x_decompress_safe.o

#obj-y += lzo/lzo_compress.o
#obj-y += lzo/lzo_decompress.o

#obj-$(CONFIG_LZ4_COMPRESS) += lz4/
#obj-$(CONFIG_LZ4HC_COMPRESS) += lz4/
#obj-$(CONFIG_LZ4_DECOMPRESS) += lz4/
obj-y += lz4/lz4_compress.o
obj-y += lz4/lz4hc_compress.o
obj-y += lz4/lz4_decompress.o


#obj-$(CONFIG_XZ_DEC) += xz/
#obj-y += xz/xz_dec.o
obj-y := xz/xz_dec_syms.o xz/xz_dec_stream.o xz/xz_dec_lzma2.o
obj-y += xz/xz_dec_bcj.o

obj-y += xz/xz_dec_test.o

#obj-$(CONFIG_RAID6_PQ) += raid6/
#obj-y	+= raid6/raid6_pq.o

obj-y	+= raid6/algos.o raid6/recov.o #raid6/tables.o raid6/int1.o raid6/int2.o raid6/int4.o
#		   raid6/int8.o raid6/int16.o raid6/int32.o

obj-y += raid6/recov_ssse3.o raid6/recov_avx2.o raid6/mmx.o raid6/sse1.o raid6/sse2.o raid6/avx2.o
#obj-y += raid6/altivec1.o raid6/altivec2.o raid6/altivec4.o raid6/altivec8.o 
obj-y += raid6/neon.o #raid6/neon1.o raid6/neon2.o raid6/neon4.o raid6/neon8.o
#obj-y += raid6/tilegx8.o

lib-y += decompress_inflate.o
lib-y += decompress_bunzip2.o
lib-y += decompress_unlzma.o
lib-y += decompress_unxz.o
lib-y += decompress_unlzo.o
lib-y += decompress_unlz4.o

obj-y += textsearch.o
obj-y += ts_kmp.o
obj-y += ts_bm.o
obj-y += ts_fsm.o
obj-y += percpu_counter.o
obj-y += audit.o
obj-y += compat_audit.o

obj-y += swiotlb.o
obj-y += iommu-helper.o iommu-common.o
obj-y += fault-inject.o
obj-y += notifier-error-inject.o
obj-y += cpu-notifier-error-inject.o
obj-y += pm-notifier-error-inject.o
obj-y += memory-notifier-error-inject.o
obj-y += \
	of-reconfig-notifier-error-inject.o

lib-y += bug.o

obj-y += syscall.o

obj-y += dynamic_debug.o

obj-y += nlattr.o

obj-y += lru_cache.o

obj-y += dma-debug.o

obj-y += checksum.o

obj-y += atomic64.o

obj-y += atomic64_test.o

#obj-y += average.o del version 4.3-rc

obj-y += cpu_rmap.o

obj-y += cordic.o

obj-y += dynamic_queue_limits.o

obj-y += glob.o

#obj-y += mpi/
#obj-y = mpi/mpi.o

obj-y = \
	mpi/generic_mpih-lshift.o		\
	mpi/generic_mpih-mul1.o		\
	mpi/generic_mpih-mul2.o		\
	mpi/generic_mpih-mul3.o		\
	mpi/generic_mpih-rshift.o		\
	mpi/generic_mpih-sub1.o		\
	mpi/generic_mpih-add1.o		\
	mpi/mpicoder.o			\
	mpi/mpi-bit.o			\
	mpi/mpi-cmp.o			\
	mpi/mpih-cmp.o			\
	mpi/mpih-div.o			\
	mpi/mpih-mul.o			\
	mpi/mpi-pow.o			\
	mpi/mpiutil.o

obj-y += digsig.o

obj-y += clz_tab.o

obj-y += jedec_ddr_data.o

obj-y += strncpy_from_user.o
obj-y += strnlen_user.o

obj-y += net_utils.o

obj-y += sg_split.o
obj-y += stmp_device.o

obj-y += fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
	       fdt_empty_tree.o
#$(foreach file, $(libfdt_files), \
	$(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt))
#lib-$(CONFIG_LIBFDT) += $(libfdt_files)

obj-y += rbtree_test.o
obj-y += interval_tree_test.o

obj-y += percpu_test.o

obj-y += asn1_decoder.o

#obj-$(CONFIG_FONT_SUPPORT) += fonts/
obj-y := fonts/fonts.o

obj-y   += fonts/font_sun8x16.o

#obj-y         += font.o

#hostprogs-y	:= gen_crc32table
#clean-files	:= crc32table.h

obj-y += oid_registry.o

obj-y += ucs2_string.o

obj-b = test.o
lib-y2.ko: ple_build.o $(lib-y) $(obj-y)
	cc $(LINUXINCLUDE) $(USERINCLUDE) -I$(ARCH_SH_IN) -Iarch\parisc\include $@ $<

%.c: %.o
	cc $@ $<