mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 23:23:31 +00:00
add special handling for the adm5120 target, which uses subtargets for different endianess -- later we should come up with something smarter
SVN-Revision: 17101
This commit is contained in:
parent
bfd20cb57d
commit
671280830d
@ -23,7 +23,11 @@ define Package/Default
|
||||
else
|
||||
VERSION:=$(PKG_RELEASE)
|
||||
endif
|
||||
ifneq ($(CONFIG_TARGET_adm5120),y)
|
||||
PKGARCH:=$(BOARD)
|
||||
else
|
||||
PKGARCH:=$(BOARD)_$(ARCH)
|
||||
endif
|
||||
PRIORITY:=optional
|
||||
DEFAULT:=
|
||||
MENU:=
|
||||
|
@ -59,7 +59,7 @@ define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC="$(TARGET_CC)" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
HOST_CPU="$(BOARD)" \
|
||||
HOST_CPU="$(PKGARCH)" \
|
||||
all install
|
||||
endef
|
||||
|
||||
@ -68,7 +68,7 @@ define Package/opkg/install
|
||||
$(INSTALL_DIR) $(1)/bin
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DATA) ./files/opkg.conf $(1)/etc/
|
||||
$(SED) 's,$$$$S,$(BOARD),g' -e 's,$$$$A,$(ARCH),g' $(1)/etc/opkg.conf
|
||||
$(SED) 's,$$$$S,$(PKGARCH),g' $(1)/etc/opkg.conf
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opkg-cl $(1)/bin/opkg
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopkg.so.* $(1)/usr/lib/
|
||||
|
Loading…
Reference in New Issue
Block a user