@ -52,12 +52,15 @@ help: FORCE
# override variables from rules.mk
PACKAGE_DIR := $( TOPDIR) /packages
I PKG:= \
O PKG:= \
IPKG_TMP = " $( TOPDIR) /tmp/ipkgtmp " \
IPKG_INSTROOT = " $( TARGET_DIR) " \
IPKG_CONF_DIR = " $( TOPDIR) /tmp " \
IPKG_OFFLINE_ROOT = " $( TARGET_DIR) " \
$( SCRIPT_DIR) /ipkg -force-defaults
$( STAGING_DIR_HOST) /bin/opkg \
-f $( TOPDIR) /tmp/opkg.conf \
--force-depends \
--force-overwrite
d e f i n e P r o f i l e
$( eval $( call Profile/Default) )
@ -79,10 +82,18 @@ _call_info: FORCE
echo 'Available Profiles:'
echo; $( PROFILE_LIST)
$(TOPDIR)/tmp/i pkg.conf : FORCE
$(TOPDIR)/tmp/o pkg.conf : FORCE
@mkdir -p $( TOPDIR) /tmp
@mkdir -p $( TARGET_DIR) /tmp
@echo 'dest root /' > $@
@echo 'src packages file:$(PACKAGE_DIR)' >> $@
@echo 'arch all 100' >> $@
i f n e q ( $( CONFIG_TARGET_adm 5120) , y )
@echo 'arch $(BOARD) 200' >> $@
e l s e
@echo 'arch $(BOARD)_$(ARCH) 200' >> $@
e n d i f
@echo 'option offline_root $(TARGET_DIR)' >> $@
BUILD_PACKAGES := $( sort $( DEFAULT_PACKAGES) $( USER_PACKAGES) $( $( USER_PROFILE) _PACKAGES) kernel)
# "-pkgname" in the package list means remove "pkgname" from the package list
@ -102,18 +113,18 @@ endif
$( MAKE) package_postinst
$( MAKE) build_image
package_index : $( TOPDIR ) /tmp /i pkg .conf FORCE
package_index : $( TOPDIR ) /tmp /o pkg .conf FORCE
@echo
@echo Building package index...
( cd $( PACKAGE_DIR) ; $( SCRIPT_DIR) /ipkg-make-index.sh . > Packages && \
gzip -9c Packages > Packages.gz \
) >/dev/null 2>/dev/null
$( I PKG) update
$( O PKG) update
package_install : FORCE
@echo
@echo Installing packages...
$( I PKG) install $( BUILD_PACKAGES)
$( O PKG) install $( BUILD_PACKAGES)
copy_files : FORCE
@echo
@ -121,6 +132,9 @@ copy_files: FORCE
$( CP) $( USER_FILES) /* $( TARGET_DIR) /
package_postinst : FORCE
@echo
@echo Cleaning up
@rm -f $( TARGET_DIR) /tmp/opkg.lock
@echo
@echo Activating init scripts
@( \