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

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

$(eval $(call BuildPackage,helloWorld))
~
~
~
~
~
~
~
~


                                                1,1           All

---------------------------------------

I can see that my application was compiled:

./bin/nexb1/packages/helloWorld_1.0-1_nexb1.ipk
./package/helloWorld
./package/helloWorld/.svn
./package/helloWorld/src
./package/helloWorld/src/.svn/tmp/props
./package/helloWorld/src/helloWorld.c
./package/helloWorld/src/Makefile
./package/helloWorld/Makefile
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/helloWorld.c
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.built
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.prepared_502f86b2dfd0fffbbe78a7ba3603e4d6_check
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.configured_
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.dep_files
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.built_check
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/.prepared_502f86b2dfd0fffbbe78a7ba3603e4d6
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld/usr
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld/usr/bin
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld/usr/bin/helloWorld
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld/CONTROL
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/ipkg-nexb1/helloWorld/CONTROL/control
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/Makefile
./build_dir/target-mipsel_uClibc-0.9.30.3/helloWorld-1.0/helloWorld
./build_dir/target-mipsel_uClibc-0.9.30.3/root-nexb1/usr/bin/helloWorld
./build_dir/target-mipsel_uClibc-0.9.30.3/root-nexb1/usr/lib/opkg/info/helloWorld.list
./staging_dir/target-mipsel_uClibc-0.9.30.3/root-nexb1/stamp/.helloWorld_installed
./staging_dir/target-mipsel_uClibc-0.9.30.3/root-nexb1/usr/bin/helloWorld
./tmp/info/.packageinfo-helloWorld

# CONFIG_BUSYBOX_CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING is not set
CONFIG_BUSYBOX_CONFIG_KLOGD=y
CONFIG_BUSYBOX_CONFIG_LOGGER=y
CONFIG_PACKAGE_dnsmasq=y
CONFIG_PACKAGE_dropbear=y
CONFIG_PACKAGE_firewall=y
CONFIG_PACKAGE_gadget=y
CONFIG_PACKAGE_gplbox=y
CONFIG_PACKAGE_helloWorld=y
CONFIG_PACKAGE_hotplug2=y
CONFIG_PACKAGE_iptables=y
CONFIG_PACKAGE_iptables-mod-conntrack=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y


On Wed, Apr 27, 2011 at 2:48 PM, Luca Olivetti <[email protected]> wrote:
> Al 27/04/11 20:00, En/na John Zavgren ha escrit:
>
>> I read the documentation and I wrote two packages. Both are visible
>> via "make menuconfig". Both compile. But, neither the application or
>> the KLM get picked up and packed into the root file image.
>
> Did you select them as <M> or as <*>?
> If the former, they will just be compiled but not installed.
> If the latter, did you define both a "Build/InstallDev" (it can be empty
> and a "Package/yourpackage/install" section in the makefile?
>
> Bye
> --
> Luca
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> 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)
[email protected]
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to