Hi,
I am using openWRT (trunk) and added my own package to it (example package hello world)
To compile the package, I tried the following link and got like below: http://wiki.openwrt.org/doc/howtobuild/single.package
madhu@Ideapad:~/Desktop/802.1x/openwrt_example/trunk$ make package/helloworld/compile
Collecting package info: done
make[1] package/helloworld/compile
make[2] -C package/toolchain compile
make[2] -C package/helloworld compile
madhu@Ideapad:~/Desktop/802.1x/openwrt_example/trunk$ make package/helloworld/install
make[1] package/helloworld/install
make[2] -C package/helloworld install
However I couldn't see any .ipk file in /bin
Posted my .c and Makefiles here for reference:
--------------------------------------------------------
madhu@Ideapad:~/Desktop/802.1x/openwrt_example/trunk/package/helloworld/src$ cat helloworld.c
#include<stdio.h>
int
main()
{
printf(“hello world\n”);
return 0;
}
madhu@Ideapad:~/Desktop/802.1x/openwrt_example/trunk/package/helloworld$ cat Makefile
#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
# Name and release number of this package
PKG_NAME:=helloworld
PKG_RELEASE:=1
#This specifies the directory where we are going to build the program
#The root build directory, $(BUILD_DIR), is by default the fuild_mpsel
#directory in your OpenWRT SDK directory
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
#Specify package information for this program.
define Package/helloworld
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Helloworld Program
endef
define Package/helloworld/description
a sample openwrt helloworld program
endef
#define Build/Prepare
# mkdir -p $(PKG_BUILD_DIR)
# $(CP) ./src/* $(PKG_BUILD_DIR)
#endef
HELLO_FLAGS = -Wall
define Build/Compile
$(call Build/Compile/Default)
$(TARGET_CC) $(HELLO_FLAGS) -o $(PKG_BUILD_DIR)/helloworld src/helloworld.c
endef
define Package/bridge/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/usr/sbin
endef
$(eval $(call BuildPackage,helloworld))
Can anyone please help me why it is not generating .ipk in /bin like other packages?
-Thanks,
Madhu.