2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=patch-cmdline
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/patch-cmdline
20 TITLE
:=Patch the kernel command line for RouterBoards
21 DEPENDS
:=@LINUX_2_6_ADM5120||@LINUX_2_6_RB532
23 A tool to patch the kernel command line on RouterBoards
24 URL
:=https
://dev.openwrt.org
/browser
/trunk
/package
/patch-cmdline
/src
/patch-cmdline.c
29 $(CP
) .
/src
/$(PKG_NAME
).c
$(PKG_BUILD_DIR
)/
33 $(CC
) -o
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).c
36 define Package
/patch-cmdline
/install
37 $(INSTALL_DIR
) $(1)/sbin
38 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/sbin
/
41 $(eval
$(call BuildPackage
,patch-cmdline
))