• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/toolchain/toolchain.mk
Gustavo ZacariasGustavo Zacarias committed e1eba3d97c520 Oct 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
# This file contains toolchain-related customisation of the content
2
# of the target/ directory. Those customisations are added to the
3
# TARGET_FINALIZE_HOOKS, to be applied just after all packages
4
# have been built.
5
​
6
# Install default nsswitch.conf file if the skeleton doesn't provide it
7
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
8
define GLIBC_COPY_NSSWITCH_FILE
9
    $(Q)if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
10
        $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
11
    fi
12
endef
13
TARGET_FINALIZE_HOOKS += GLIBC_COPY_NSSWITCH_FILE
14
endif
15
​
16
# Install the gconv modules
17
ifeq ($(BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY),y)
18
GCONV_LIBS = $(call qstrip,$(BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_LIST))
19
define COPY_GCONV_LIBS
20
    $(Q)if [ -z "$(GCONV_LIBS)" ]; then \
21
        $(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/gconv/gconv-modules \
22
                      $(TARGET_DIR)/usr/lib/gconv/gconv-modules; \
23
        $(INSTALL) -m 0644 $(STAGING_DIR)/usr/lib/gconv/*.so \
24
                   $(TARGET_DIR)/usr/lib/gconv \
25
        || exit 1; \
26
    else \
27
        for l in $(GCONV_LIBS); do \
28
            $(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/gconv/$${l}.so \
29
                          $(TARGET_DIR)/usr/lib/gconv/$${l}.so \
30
            || exit 1; \
31
            $(TARGET_READELF) -d $(STAGING_DIR)/usr/lib/gconv/$${l}.so |\
32
            sort -u |\
33
            sed -e '/.*(NEEDED).*\[\(.*\.so\)\]$$/!d; s//\1/;' |\
34
            while read lib; do \
35
                 $(INSTALL) -m 0644 -D $(STAGING_DIR)/usr/lib/gconv/$${lib} \
36
                               $(TARGET_DIR)/usr/lib/gconv/$${lib} \
37
                 || exit 1; \
38
            done; \
39
        done; \
40
        ./support/scripts/expunge-gconv-modules "$(GCONV_LIBS)" \
41
            <$(STAGING_DIR)/usr/lib/gconv/gconv-modules \
42
            >$(TARGET_DIR)/usr/lib/gconv/gconv-modules; \
43
    fi
44
endef
45
TARGET_FINALIZE_HOOKS += COPY_GCONV_LIBS
46
endif
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.