3 include $(TOPDIR
)/rules.mk
8 ifeq ($(strip $(BR2_PACKAGE_BUSYBOX_SNAPSHOT
)),y
)
9 # Be aware that this changes daily....
10 PKG_VERSION
:=0.
${shell date
+"%G%m%d"}
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
12 PKG_SOURCE
:=$(PKG_NAME
)-snapshot.
tar.bz2
13 PKG_SOURCE_URL
:=http
://www.busybox.net
/downloads
/snapshots
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
19 PKG_SOURCE_URL
:=http
://www.busybox.net
/downloads
20 PKG_MD5SUM
:=5c7ea9b5d3b3677dfcdcec38b281a756
24 include $(TOPDIR
)/package
/rules.mk
26 $(eval
$(call PKG_template
,BUSYBOX
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
28 $(PKG_BUILD_DIR
)/.configured
:
29 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
30 yes
'' |
$(MAKE
) CC
=$(TARGET_CC
) CROSS
="$(TARGET_CROSS)" -C
$(PKG_BUILD_DIR
) oldconfig
33 $(PKG_BUILD_DIR
)/.built
:
34 $(MAKE
) CC
=$(TARGET_CC
) CROSS
="$(TARGET_CROSS)" PREFIX
="$(IDIR_BUSYBOX)" \
35 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" ARCH
="$(ARCH)" -C
$(PKG_BUILD_DIR
)
39 $(MAKE
) CC
=$(TARGET_CC
) CROSS
="$(TARGET_CROSS)" PREFIX
="$(IDIR_BUSYBOX)" \
40 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" -C
$(PKG_BUILD_DIR
) install
41 $(STRIP
) $(IDIR_BUSYBOX
)/bin
/busybox
42 -chmod a
+x
$(IDIR_BUSYBOX
)/usr
/share
/udhcpc
/default.script
43 $(IPKG_BUILD
) $(IDIR_BUSYBOX
) $(PACKAGE_DIR
)