From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bay0-omc2-s14.bay0.hotmail.com (bay0-omc2-s14.bay0.hotmail.com [65.54.246.150]) by ozlabs.org (Postfix) with ESMTP id D05B567B5A for ; Sun, 10 Sep 2006 04:34:46 +1000 (EST) Message-ID: In-Reply-To: <1157823763.2670.2.camel@vader.jdub.homelinux.org> From: "Ming Liu" To: jwboyer@jdub.homelinux.org Subject: RE: asm/*.h files missing for ppc arch. Date: Sat, 09 Sep 2006 18:34:41 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear Josh, >How are you compiling? For 4xx, you still need to specify ARCH=ppc with >the make command. There is some makefile hackery that will then bring >in header files from asm-powerpc as needed. In fact, I just try to compile the hello example in the book Linux Device Driver chapter 2. The Makefile is listed as: #Makefile ifneq ($(KERNELRELEASE),) obj-m := hello.o else KERNELDIR ?= /home/mingliu/linux-2.6.16 PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif Also, I have specified ARCH = ppc in my Linux kernel. But it seems that there is still some problem. Thanks for your suggestion. Regards Ming _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com