diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 19:51:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 19:51:32 +0100 |
commit | b56c73c95f08099803c60d9e2f2584f231220d47 (patch) | |
tree | 704b5c66e0d233af904afdfa00e1dd9c2205d02d /mk | |
parent | 09381f08db60bd52ab7135bd084fa2bb197a98c2 (diff) |
misc patches needed for allmodconfig for ibm-x40-eglibc on Darwin OS
* fix *.pc / *-config file handling.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/build.mk | 2 | ||||
-rw-r--r-- | mk/modules.mk | 2 | ||||
-rw-r--r-- | mk/package.mk | 2 | ||||
-rw-r--r-- | mk/pkg-bottom.mk | 23 |
4 files changed, 20 insertions, 9 deletions
diff --git a/mk/build.mk b/mk/build.mk index 553d90f9b..382f15353 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -135,7 +135,7 @@ ifeq ($(ADK_TARGET_PACKAGE_IPKG),y) endif ${STAGING_DIR} ${STAGING_DIR}/etc ${STAGING_HOST_DIR}: - mkdir -p ${STAGING_DIR}/{bin,etc,lib,usr/include,usr/lib} \ + mkdir -p ${STAGING_DIR}/{bin,etc,lib,usr/include,usr/lib/pkgconfig} \ ${STAGING_HOST_DIR}/{bin,lib,usr/bin,usr/lib} ${STAGING_DIR}/etc/ipkg.conf: ${STAGING_DIR}/etc diff --git a/mk/modules.mk b/mk/modules.mk index 0be466b1f..73b354d35 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -927,8 +927,10 @@ $(eval $(call KMOD_template,CRYPTO_FCRYPT,crypto-fcrypt,\ ZLIB:=lib/zlib_deflate/zlib_deflate ifneq (${ADK_LINUX_NATIVE},y) +ifneq ($(ADK_TARGET_SYSTEM_IBM_X40),y) ZLIB+=lib/zlib_inflate/zlib_inflate endif +endif $(eval $(call KMOD_template,CRYPTO_DEFLATE,crypto-deflate,\ $(foreach mod, $(ZLIB),$(MODULES_DIR)/kernel/$(mod)) \ diff --git a/mk/package.mk b/mk/package.mk index df05e98ae..0068277e9 100644 --- a/mk/package.mk +++ b/mk/package.mk @@ -192,7 +192,7 @@ endif -exec echo 'WARNING: $${IPKG_$(1)} installs files in /lib -' \ ' fix this!' >&2 \; -quit 2>/dev/null; fi; \ find usr ! -type d 2>/dev/null | \ - grep -v -e '^usr/share' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' | \ + grep -E -v -e '^usr/share' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' -e '^usr/lib/pkgconfig' -e '^usr/bin/[a-z0-9-]+-config' | \ tee '$${STAGING_PKG_DIR}/$(1)' | \ $(TOOLS_DIR)/cpio -padlmu '$${STAGING_DIR}' @cd '$${STAGING_DIR}'; grep 'usr/lib/.*\.la$$$$' \ diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk index 436a0cbee..ff7bd5638 100644 --- a/mk/pkg-bottom.mk +++ b/mk/pkg-bottom.mk @@ -131,7 +131,6 @@ spkg-install: ${ALL_POSTINST} ${_FAKE_COOKIE}: ${_BUILD_COOKIE} -rm -f ${_ALL_CONTROLS} @mkdir -p '${STAGING_PKG_DIR}' ${WRKINST} '${STAGING_DIR}/scripts' - @mkdir -p ${WRKINST}/{sbin,bin,etc,lib} ${WRKINST}/usr/{sbin,bin,lib} @${MAKE} ${_ALL_CONTROLS} $(MAKE_TRACE) @env ${MAKE_ENV} ${MAKE} pre-install $(MAKE_TRACE) ifneq ($(filter manual,${INSTALL_STYLE}),) @@ -146,13 +145,21 @@ else @echo "Invalid INSTALL_STYLE '${INSTALL_STYLE}'" >&2 @exit 1 endif - env ${MAKE_ENV} ${MAKE} spkg-install $(MAKE_TRACE) -ifeq ($(ADK_NATIVE),) - @for a in ${WRKINST}/usr/{bin/*-config,lib/pkgconfig/*.pc}; do \ + @for a in ${WRKINST}/usr/bin/*-config; do \ [[ -e $$a ]] || continue; \ - $(SED) "s,^prefix=.*,prefix=${STAGING_TARGET_DIR}/usr," $$a; \ + sed -e "s,^prefix=.*,prefix=${STAGING_TARGET_DIR}/usr," $$a > \ + ${STAGING_DIR}/usr/bin/$$(basename $$a); \ + chmod u+x ${STAGING_DIR}/usr/bin/$$(basename $$a); \ + [[ "$$(basename $$a)" != "pkg-config" ]] && cp ${STAGING_DIR}/usr/bin/$$(basename $$a) ${STAGING_DIR}/scripts; \ + echo "scripts/$$(basename $$a)" \ + >>'${STAGING_PKG_DIR}/${PKG_NAME}.scripts'; \ done -endif + @for a in ${WRKINST}/usr/lib/pkgconfig/*.pc; do \ + [[ -e $$a ]] || continue; \ + sed -e "s,^prefix=.*,prefix=${STAGING_TARGET_DIR}/usr," $$a > \ + ${STAGING_DIR}/usr/lib/pkgconfig/$$(basename $$a); \ + done + env ${MAKE_ENV} ${MAKE} spkg-install $(MAKE_TRACE) ifeq (,$(filter noremove,${PKG_OPTS})) @if test -s '${STAGING_PKG_DIR}/${PKG_NAME}'; then \ cd '${STAGING_DIR}'; \ @@ -168,7 +175,7 @@ endif -exec echo 'WARNING: ${PKG_NAME} installs files in /lib -' \ ' fix this!' >&2 \; -quit 2>/dev/null; fi;\ find usr ! -type d 2>/dev/null | \ - grep -v -e '^usr/share' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' | \ + grep -E -v -e '^usr/share' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' -e '^usr/lib/pkgconfig' -e '^usr/bin/[a-z0-9-]+-config' | \ tee '${STAGING_PKG_DIR}/${PKG_NAME}' | \ $(TOOLS_DIR)/cpio -padlmu '${STAGING_DIR}' @cd '${STAGING_DIR}'; grep 'usr/lib/.*\.la$$' \ @@ -187,6 +194,8 @@ ifeq (,$(filter noscripts,${PKG_OPTS})) >>'${STAGING_PKG_DIR}/${PKG_NAME}'; \ done endif + -@test -e '${STAGING_PKG_DIR}/${PKG_NAME}.scripts' && \ + cat '${STAGING_PKG_DIR}/${PKG_NAME}.scripts' >> '${STAGING_PKG_DIR}/${PKG_NAME}' || echo touch $@ ${_IPKGS_COOKIE}: |