Re: [crisos] CrisOs and Sensirion humidity and temperature sensor |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/crisos Archives
]
- To: crisos@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [crisos] CrisOs and Sensirion humidity and temperature sensor
- From: Claudio <claudyus84@xxxxxxxxx>
- Date: Mon, 23 Jun 2008 22:13:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=eyimyj6ENUITwdXAxOf8f8Deg7VkW+3W5dPCaDrCMmA=; b=R0IyDVekQZs84d6wJpQ2JBSaexr1tCCabnmBO64BJPa5I0dozNqR9eGwYPTb9BRRT0 r47M9qF80fSa/hPbNbO1WUDHryqSR7ggengXT2IntLcdwf6ZmA4DJ7zK2FXVvkqmCqoP 4za+GfYWDb8tl4iVdd3U2/EuQ16SgLv/d+i8k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XyCfDWAQ6PrCSz9Xk1otPdXHyBJX3hYQnR8eKy8I9k7HgzGeqdtWfIb5DH5FjO1QPH FUbz7NW3N+uBuqZpBUwe+GXERYDIJ9Q6Hq7zkKX/YQBzoOCCJ2phKV7S4XVQazfXBw/o M4f7xDEYVTioKW7sz1yhB7yx1kGFWEp+aMEsY=
Hi,
I dont test it yet but the first line is wrong.
TOPDIR:=/home/fox/trunk
Try to remove this line and so call make menuconfig , your application
should appear inside the utilities menu.
You can also call the makefile directly using make
package/sht71-compile V=99 form the root of your sdk.
I will test your makefile soon as possible...
Bye
2008/6/23 Frederic AYRAULT <fred@xxxxxxxxxxx>:
> Hi Claudio,
>
>> Yes, there are some difference on default port setting because on
>> CrisOs distribution the tty2 and tty3 are disable by default, so more
>> pin are free at the gpio module load.
>>
>
> Is it possible to add debug messages for gpio commands ?
>>
>> Paste your makefile some where so we can analyze it. (I may also
>> include it on crisos trunk)
>>
>
> main makefile (trunk/package/sht71)
>
> #sht71 makefile
> TOPDIR:=/home/fox/trunk
> include $(TOPDIR)/rules.mk
> PKG_NAME:=sht71
> PKG_RELEASE:=1
> PKG_VERSION:=0.1
> PKG_BUILD_DEPENDS:=
> include $(INCLUDE_DIR)/package.mk
> define Package/sht71
> SECTION:=utils
> CATEGORY:=Utilities
> DEPENDS:=@TARGET_ETRAX
> TITLE:=sht71
> endef
> define Package/sht71/description
> This is sht71 :p
> endef
> define Build/Prepare
> mkdir -p $(PKG_BUILD_DIR)
> $(CP) ./src/* $(PKG_BUILD_DIR)/
> endef
> define Build/Compile
> $(MAKE) -C $(PKG_BUILD_DIR) \
> $(TARGET_CONFIGURE_OPTS) \
> CFLAGS="$(TARGET_CFLAGS)"
> endef
> define Package/sht71/install
> $(INSTALL_DIR) $(1)/usr/bin
> $(INSTALL_BIN) $(PKG_BUILD_DIR)/sht71 $(1)/usr/bin/
> endef
> $(eval $(call BuildPackage,sht71))
>
> makefile from the src directory
>
> #Change application name
> PROGS = sht71
> INSTDIR = $(prefix)/usr/bin
> INSTMODE = 0755
> INSTOWNER = root
> INSTGROUP = root
> #change obj list for this application
> OBJS = sht71.o
> all: $(PROGS)
> $(PROGS): $(OBJS)
> $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
> $(STRIP) $@
> install: $(PROGS)
> $(INSTALL) -d $(INSTDIR)
> $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP)
> $(PROGS) $(INSTDIR)
> clean:
> rm -f $(PROGS) *.o core
>
> Thank you for your help.
>
> Frederic.
>
>
>
> ---
> CrisOs mailing list
> Official multi-language http://www.crisos.org/ mailing list
>
> For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with
> subject unsubscribe.
>
--
Claudio
User linux #415284
- http://www.crisos.org/
---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list
For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.