Emmanuel: Thanks for getting back to me on this issue. I haven't tried your suggestions yet, however, I wonder why similar packages that don't have the modifications you recommend seem to work they way I expect them to.
For example, the package that installs the bridge utiliites: package/bridge-utils/, has a Makefile that looks like this: include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=bridge-utils PKG_RELEASE:=1 PKG_SOURCE_URL:=@SF/bridge ifeq ($(CONFIG_LINUX_2_4),y) PKG_VERSION:=1.0.6 PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd endif ifeq ($(CONFIG_LINUX_2_6),y) PKG_VERSION:=1.4 PKG_MD5SUM:=0182fcac3a2b307113bbec34e5f1c673 endif PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz include $(INCLUDE_DIR)/package.mk define Package/bridge SECTION:=net CATEGORY:=Base system TITLE:=Ethernet bridging configuration utility URL:=http://bridge.sourceforge.net/ endef define Package/bridge/description Manage ethernet bridging: a way to connect networks together to form a larger network. endef CONFIGURE_ARGS += \ --with-linux-headers="$(LINUX_DIR)" \ define Build/Prepare $(call Build/Prepare/Default) ( cd $(PKG_BUILD_DIR) ; \ [ -f ./configure ] || { \ ln -sf configure.in configure.ac ; \ autoconf ; \ } \ ) endef define Package/bridge/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/ endef $(eval $(call BuildPackage,bridge)) And, this makefile seem to be able to induce the creation of the bridge management program: brctl As seen in my "sand box" ./package/busybox/patches/.svn/text-base/802-brctl_linux24.patch.svn-base ./package/busybox/patches/.svn/text-base/801-brctl_zero_time.patch.svn-base ./package/busybox/patches/.svn/text-base/003-brctl_show_fix.patch.svn-base ./package/busybox/patches/003-brctl_show_fix.patch ./package/busybox/patches/801-brctl_zero_time.patch ./package/busybox/patches/802-brctl_linux24.patch ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/networking/brctl.c ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/networking/.brctl.o.cmd ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/networking/brctl.o ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/ipkg-install/usr/sbin/brctl ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/include/config/feature/brctl ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/include/config/feature/brctl/show.h ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/include/config/feature/brctl/fancy.h ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/include/config/brctl.h ./build_dir/target-mipsel_uClibc-0.9.30.3/busybox-1.14.4/ipkg-nexb1/busybox/usr/sbin/brctl ./build_dir/linux-nexb1/bridge-utils-1.4/brctl ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl.c ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl_cmd.c ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl_disp.o ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl_cmd.o ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl_disp.c ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl.h ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/brctl.o ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/Makefile.in ./build_dir/linux-nexb1/bridge-utils-1.4/brctl/Makefile ./build_dir/linux-nexb1/bridge-utils-1.4/ipkg-nexb1/bridge/usr/sbin/brctl ./build_dir/linux-nexb1/bridge-utils-1.4/doc/brctl.8 ./staging_dir/target-mipsel_uClibc-0.9.30.3/root-nexb1/usr/sbin/brctl --- As seen on the target: root@NexWare:/# brctl show bridge name bridge id STP enabled interfaces br-lan 8000.00026b0c5caa no eth0.2 eth0.1 ra0 On Thu, Apr 28, 2011 at 5:50 AM, Emmanuel Deloget < emmanuel.delo...@efixo.com> wrote: > Hello, > > On 04/28/2011 12:16 AM, John Zavgren wrote: >> >> Thanks for getting back to me... I'm still confused. I selected the >> trivial package with the<*> option. >> >> >> >> Makefile --------------------------- >> # >> # Copyright (C) 2008 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:=helloWorld >> PKG_VERSION:=1.0 >> PKG_RELEASE:=1 > > PKG_INSTAL:=1 > Without this, the install will not be processed (as I found out myself). >> >> include $(INCLUDE_DIR)/package.mk >> >> define Package/helloWorld >> SECTION:=base >> CATEGORY:=Base system >> TITLE:=Trivial test application >> DEPENDS:=+uci >> endef >> >> define Package/helloWorld/description >> Trivial Test Application >> endef >> >> define Build/Prepare >> mkdir -p $(PKG_BUILD_DIR) >> $(CP) ./src/* $(PKG_BUILD_DIR) >> endef >> >> >> define Package/helloWorld/install >> $(INSTALL_DIR) $(1)/usr/bin >> $(INSTALL_BIN) $(PKG_BUILD_DIR)/helloWorld $(1)/usr/bin >> endef >> > When your install rule is executed in your own makefile, it has access to > the variable $(DESTDIR) which points to what will be known as > $(PKG_INSTALL_DIR) in the package Makefile. Thus, it's far easier to make > the full install in $(DESTDIR) and to simply put this line in the > Package/helloworld/install: > > $(CP) $(PKG_INSTALL_DIR)/* $(1)/ > > It helps to reduce redundancy in these makefiles (now, you only have to > modify your own makefile if you change the setup of your project). I suggest > you to do something similar for InstallDev if you use it. You also need an > InstallDev, although it can be empty: > > define Build/InstallDev > endef > >> $(eval $(call BuildPackage,helloWorld)) >> ~ > > <snip> > > Best regards, > > -- Emmanuel (who hopes that his email client is configured correctly) > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > > -- Remember when teachers, public employees, Planned Parenthood, NPR and PBS crashed the stock market, wiped out half of our 401Ks, took trillions in TARP money, spilled oil in the Gulf of Mexico, gave themselves billions in bonuses, and paid no taxes? Yeah, me neither. John Zavgren 603-371-0513 (home) 603-801-2094 (cell) johnzavgren (skype) 603-821-0904 (skype) j...@zavgren.com
Makefile
Description: Binary data
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel