Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub not building for x86

2010-05-02 Thread Thierry MUSEUX - www.fwt.fr -
I have the same thing,
My first investigation is between the r21183(OK) and r21184(KO)
package/grub/Makefile has been changed

the diff is:
--- Makefile.21183  2010-05-01 23:36:30.0 +0200
+++ Makefile.21184  2010-05-02 09:42:40.0 +0200
@@ -31,10 +31,7 @@
   URL:=http://www.gnu.org/software/grub/
 endef

-CONFIGURE_FLAGS:= \
-   --target=$(GNU_TARGET_NAME) \
-   --host=$(GNU_TARGET_NAME) \
-   --build=$(GNU_HOST_NAME)
+CONFIGURE_FLAGS:=

 ifneq ($(HOST_OS),Darwin)
 define Build/Configure



Thierry Museux
France Wireless Technologies
www.fwt.fr
msn: t...@fwt.fr


-Message d'origine-
De : openwrt-tickets-boun...@lists.openwrt.org
[mailto:openwrt-tickets-boun...@lists.openwrt.org] De la part de OpenWrt
Envoyé : dimanche 2 mai 2010 03:01
Cc : openwrt-tick...@lists.openwrt.org
Objet : Re: [OpenWrt-Tickets] [OpenWrt] #7269: grub not building for x86

#7269: grub not building for x86
+---
 Reporter:  Dennis Bartsch  |   Owner:  nico
 Type:  defect  |  Status:  accepted
 Priority:  high|   Milestone:  Backfire 10.03.1
Component:  base system | Version:  Trunk   
 Keywords:  |  
+---
Changes (by nico):

  * owner:  developers => nico
  * status:  new => accepted


Comment:

 I'm working on a fix...

-- 
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tick...@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-tickets

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to create an OpenWrt Package Makefile for source without a Makefile

2010-05-02 Thread Matthias Buecher / Germany
Tried to create an OpenWrt of a small VoIP proxy for a friend.
Unfortunately the source itself does not have a Makefile.
It just says "Use: gcc -o mjproxy md5.c mjproxy.c".

How must the "Build/Compile" section look like for such a case?
Looked at wiki and forum, but couldn't find any fitting information.
If I missed a link then please tell me.
Thanks in advance.

Following is the current result of the OpenWrt Package Makefile.

[packages]
net/magicjack-proxy/Makefile
#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=magicjack-proxy
PKG_VERSION:=1
PKG_RELEASE:=1

PKG_SOURCE:=mjproxy.c.tar.gz
PKG_SOURCE_URL:=http://www.mediafire.com/file/yzwmjzotmyy
PKG_MD5SUM:=01262075cc72ad804f1d6b5dc181113b

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/magicjack-proxy
  SECTION:=net
  CATEGORY:=Network
  TITLE:=MagicJack Proxy
  URL:=http://www.magicjacksupport.com/post42750.html#42750
# DEPENDS:=
endef

define Package/magicjack-proxy/description
Proxy for MagicJack (VoIP service provider, http://www.magicjack.com/)
endef

#define Package/magicjack-proxy/conffiles
#endef

define Build/Compile
#No Makefile available
#gcc -o mjproxy md5.c mjproxy.c
#ToDo: How to do it the right OpenWrt way?
#???$(call Build/Compile/Default)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
USELIBWRAP= \
all
endef

define Package/magicjack-proxy/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mjproxy $(1)/usr/bin/
endef

$(eval $(call BuildPackage,magicjack-proxy))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to create an OpenWrt Package Makefile for source without a Makefile

2010-05-02 Thread Florian Fainelli
Hi Matthias,

Le dimanche 2 mai 2010 13:54:15, Matthias Buecher / Germany a écrit :
> Tried to create an OpenWrt of a small VoIP proxy for a friend.
> Unfortunately the source itself does not have a Makefile.
> It just says "Use: gcc -o mjproxy md5.c mjproxy.c".
> 
> How must the "Build/Compile" section look like for such a case?

It should look like this:

$(TARGET_CC) -c $(PKG_BUILD_DIR)/mjproxy.c
$(TARGET_CC) -c $(PKG_BUILD_DIR)/md5.c
$(TARGET_CC) -o $(PKG_BUILD_DIR)/mjproxy $(PKG_BUILD_DIR)/mjproxy.o 
$(PKG_BUILD_DIR)/md5.o

Have a look at how it is done for ifenslave for instance.

> Looked at wiki and forum, but couldn't find any fitting information.
> If I missed a link then please tell me.
> Thanks in advance.
> 
> Following is the current result of the OpenWrt Package Makefile.
> 
> [packages]
> net/magicjack-proxy/Makefile
> #
> # Copyright (C) 2010 OpenWrt.org
> #
> # This is free software, licensed under the GNU General Public License v2.
> # See /LICENSE for more information.
> #
> 
> include $(TOPDIR)/rules.mk
> 
> PKG_NAME:=magicjack-proxy
> PKG_VERSION:=1
> PKG_RELEASE:=1
> 
> PKG_SOURCE:=mjproxy.c.tar.gz
> PKG_SOURCE_URL:=http://www.mediafire.com/file/yzwmjzotmyy
> PKG_MD5SUM:=01262075cc72ad804f1d6b5dc181113b
> 
> PKG_INSTALL:=1
> 
> include $(INCLUDE_DIR)/package.mk
> 
> define Package/magicjack-proxy
>   SECTION:=net
>   CATEGORY:=Network
>   TITLE:=MagicJack Proxy
>   URL:=http://www.magicjacksupport.com/post42750.html#42750
> # DEPENDS:=
> endef
> 
> define Package/magicjack-proxy/description
>   Proxy for MagicJack (VoIP service provider, http://www.magicjack.com/)
> endef
> 
> #define Package/magicjack-proxy/conffiles
> #endef
> 
> define Build/Compile
> #No Makefile available
> #gcc -o mjproxy md5.c mjproxy.c
> #ToDo: How to do it the right OpenWrt way?
> #???  $(call Build/Compile/Default)
>   $(MAKE) -C $(PKG_BUILD_DIR) \
>   $(TARGET_CONFIGURE_OPTS) \
>   CFLAGS="$(TARGET_CFLAGS)" \
>   USELIBWRAP= \
>   all
> endef
> 
> define Package/magicjack-proxy/install
>   $(INSTALL_DIR) $(1)/usr/bin
>   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mjproxy $(1)/usr/bin/
> endef
> 
> $(eval $(call BuildPackage,magicjack-proxy))
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 


signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to create an OpenWrt Package Makefile for source without a Makefile

2010-05-02 Thread Mirko Vogt
Hey,

as the Build/Compile template assumes that the source provides a
Makefile, you should override the whole section and should not call
Build/Compile/Default.

You may want to take a look at the Makefile of 
(packages/utils/schedtools/Makefile).

Have a nice sunday

mirko


On Sun, 2010-05-02 at 13:54 +0200, Matthias Buecher / Germany wrote:
> Tried to create an OpenWrt of a small VoIP proxy for a friend.
> Unfortunately the source itself does not have a Makefile.
> It just says "Use: gcc -o mjproxy md5.c mjproxy.c".
> 
> How must the "Build/Compile" section look like for such a case?
> Looked at wiki and forum, but couldn't find any fitting information.
> If I missed a link then please tell me.
> Thanks in advance.
> 
> Following is the current result of the OpenWrt Package Makefile.
> 
> [packages]
> net/magicjack-proxy/Makefile
> #
> # Copyright (C) 2010 OpenWrt.org
> #
> # This is free software, licensed under the GNU General Public License v2.
> # See /LICENSE for more information.
> #
> 
> include $(TOPDIR)/rules.mk
> 
> PKG_NAME:=magicjack-proxy
> PKG_VERSION:=1
> PKG_RELEASE:=1
> 
> PKG_SOURCE:=mjproxy.c.tar.gz
> PKG_SOURCE_URL:=http://www.mediafire.com/file/yzwmjzotmyy
> PKG_MD5SUM:=01262075cc72ad804f1d6b5dc181113b
> 
> PKG_INSTALL:=1
> 
> include $(INCLUDE_DIR)/package.mk
> 
> define Package/magicjack-proxy
>   SECTION:=net
>   CATEGORY:=Network
>   TITLE:=MagicJack Proxy
>   URL:=http://www.magicjacksupport.com/post42750.html#42750
> # DEPENDS:=
> endef
> 
> define Package/magicjack-proxy/description
>   Proxy for MagicJack (VoIP service provider, http://www.magicjack.com/)
> endef
> 
> #define Package/magicjack-proxy/conffiles
> #endef
> 
> define Build/Compile
> #No Makefile available
> #gcc -o mjproxy md5.c mjproxy.c
> #ToDo: How to do it the right OpenWrt way?
> #???  $(call Build/Compile/Default)
>   $(MAKE) -C $(PKG_BUILD_DIR) \
>   $(TARGET_CONFIGURE_OPTS) \
>   CFLAGS="$(TARGET_CFLAGS)" \
>   USELIBWRAP= \
>   all
> endef
> 
> define Package/magicjack-proxy/install
>   $(INSTALL_DIR) $(1)/usr/bin
>   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mjproxy $(1)/usr/bin/
> endef
> 
> $(eval $(call BuildPackage,magicjack-proxy))
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel




-- 
This email address is used for mailinglist purposes only.
Non-mailinglist emails will be dropped automatically.
If you want to get in contact with me personally, please mail to:
mirko.vogt  nanl  de

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [OpenWrt-Tickets] [OpenWrt] #7269: grub not building for x86

2010-05-02 Thread Thierry MUSEUX - www.fwt.fr -
i am on a debian, I have built many time too, no problem with r21183, fails
with r21184
gcc is not found in ./configure

checking for gcc... gcc
checking for gcc... (cached) gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
make[3]: ***
[/home/dev8/HR/openwrt/x86/trunk/build_dir/linux-x86_generic/grub-0.97/.conf
igured_] Error 77



Thierry Museux
France Wireless Technologies
www.fwt.fr
msn: t...@fwt.fr

-Message d'origine-
De : openwrt-tickets-boun...@lists.openwrt.org
[mailto:openwrt-tickets-boun...@lists.openwrt.org] De la part de OpenWrt 
Envoyé : dimanche 2 mai 2010 15:09
Cc : openwrt-tick...@lists.openwrt.org
Objet : Re: [OpenWrt-Tickets] [OpenWrt] #7269: grub not building for x86

#7269: grub not building for x86
+---
 Reporter:  Dennis Bartsch  |   Owner:  nico
 Type:  defect  |  Status:  accepted
 Priority:  high|   Milestone:  Backfire 10.03.1
Component:  base system | Version:  Trunk   
 Keywords:  |  
+---

Comment(by anonymous):

 just to update things, i found the 32 bit glibc-static on a fedora mirror,
 for some reason yum didn't know about it( tried clean all/update a few
 times).

 grub now builds ok.

 maybe this was just a yum/rpm problem on my end but "it used to work" and
 it quit last night.

-- 
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tick...@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-tickets

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] RDC kernel 2.6.32 support

2010-05-02 Thread Florian Fainelli
Le jeudi 15 avril 2010 04:18:39, Bernhard Loos a écrit :
> Hello
> This patch adds support for the 2.6.32 kernel to rdc (not enabled yet).
> The odd amit and pcmcia fixes are not included, i'm not compeltly
> sure, what do with them.
> I also changed the lzma version to the openwrt one and did some tuning
> on the compression options.
> And there is also a bug fix for sitecom in the .30 code, where the
> size of the firmware mtd partition is wrong.
> 
>   Bernhard
> 

Applied in r21309, r21310 and r21311, thanks Bernhard!


signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to create an OpenWrt Package Makefile for source without a Makefile

2010-05-02 Thread Stefan Monnier
> Tried to create an OpenWrt of a small VoIP proxy for a friend.
> Unfortunately the source itself does not have a Makefile.
> It just says "Use: gcc -o mjproxy md5.c mjproxy.c".

You've had answers to your question, but I'll point out that a better
answer might be to provide a Makefile.


Stefan

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to create an OpenWrt Package Makefile for source without a Makefile

2010-05-02 Thread Matthias Buecher / Germany
Thanks to Mirko and Florian, I got it compiled and my friend will test
tomorrow.

Hmm, adding a Makefile via a patch to the original source looks like
double work to me, but a valid idea.
My friend and I are currently trying to get in contact with the author
to get this addressed.

If all goes well, I will create an enhancement ticket to add the
MagicJack Proxy to the packages feed.

Thanks for all your help
Maddes

On 02.05.2010 21:54, Stefan Monnier wrote:
>> Tried to create an OpenWrt of a small VoIP proxy for a friend.
>> Unfortunately the source itself does not have a Makefile.
>> It just says "Use: gcc -o mjproxy md5.c mjproxy.c".
> 
> You've had answers to your question, but I'll point out that a better
> answer might be to provide a Makefile.
> 
> 
> Stefan

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] acx-m80211 update

2010-05-02 Thread Bernhard Loos
Hello
This patch updates the mac80211 version of the acx driver to the
latest git commit.
I removed most of the patches, as they were either merged or didn't
apply any more.
Client mode works reasonable well, I tested it under load for about 3h
without any problems.
The really brave can enable ap mode by adding BIT(NL80211_IFTYPE_AP)
to the new vlynq patch, but the results aren't very pretty.

  Bernhard


acx.diff
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] FYI: paper on oss-qm project

2010-05-02 Thread Enrico Weigelt

Hi folks,

JFYI: i've written a little paper on the oss-qm project, which aims
to provide fixed/stabelized sourcetrees for lots of packages+versions
in order to offload lots of QM/patching works from the individual
distros and self-building people:

http://www.metux.de/download/oss-qm-project-2010050101.pdf

cu 
-- 
-
 Enrico Weigelt==   metux IT service - http://www.metux.de/
-
 Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Stopping watchdog

2010-05-02 Thread Yury Polyanskiy
Dear all,

Here is a simple patch to provide /etc/init.d/watchdog stop. Just in
case someone is interested.

Index: package/base-files/files/etc/init.d/watchdog
===
--- package/base-files/files/etc/init.d/watchdog(revision 21164)
+++ package/base-files/files/etc/init.d/watchdog(working copy)
@@ -6,3 +6,8 @@
 [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
watchdog -t 5 /dev/watchdog
 }
+
+stop() {
+   killall -q watchdog
+   [ -c /dev/watchdog ] && echo "V" > /dev/watchdog
+}


signature.asc
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel