madwifi: fix a few locking mistakes
[openwrt.git] / package / patch-cmdline / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=patch-cmdline
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/patch-cmdline
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Patch the kernel command line for RouterBoards
21 DEPENDS:=@LINUX_2_6_ADM5120||@LINUX_2_6_RB532
22 DESCRIPTION:=\
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
25 VERSION:=1
26 endef
27
28 define Build/Prepare
29 $(CP) ./src/$(PKG_NAME).c $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Compile
33 $(CC) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
34 endef
35
36 define Package/patch-cmdline/install
37 $(INSTALL_DIR) $(1)/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
39 endef
40
41 $(eval $(call BuildPackage,patch-cmdline))
This page took 0.042884 seconds and 5 git commands to generate.