1 ######################################################################
5 ######################################################################
6 MKLIBS_PROGRAM
:=$(STAGING_DIR
)/bin
/mklibs.py
8 $(MKLIBS_PROGRAM
): toolchain
/mklibs
/mklibs.py
9 cp
-dpf toolchain
/mklibs
/mklibs.py
$@
12 rm -f
$(MKLIBS_PROGRAM
)
17 #############################################################
21 #############################################################
22 MKLIBS_PYTHON
:=$(shell which python
)
23 ifeq ($(MKLIBS_PYTHON
),)
24 MKLIBS_PYTHON
=/usr
/bin
/python
27 $(STAGING_DIR
)/mklibs-stamp
: $(MKLIBS_PROGRAM
) $(MKLIBS_PYTHON
) $(STAGING_DIR
)/lib
/*
28 find
$(TARGET_DIR
) -type f
-perm
+100 -exec \
29 file
-r
-N
-F
'' {} + | \
30 awk
' /executable.*dynamically/ { print $$1 }' > $(STAGING_DIR
)/mklibs-progs
31 cd
$(TARGET_DIR
); PATH
=$(PATH
):$(STAGING_DIR
)/bin
$(MKLIBS_PYTHON
) $(MKLIBS_PROGRAM
) \
32 --target
$(REAL_GNU_TARGET_NAME
) --root
$(STAGING_DIR
) -d .
/ \
33 `cat $(STAGING_DIR)/mklibs-progs`
36 # this empty target allows a mklibs dependeny to be included in the
37 # target targets, but it will be only invoked if BR2_MKLIBS is conf'ed
41 #############################################################
43 # Toplevel Makefile options
45 #############################################################
47 ifeq ($(BR2_MKLIBS
),y
)
48 mklibs
: $(STAGING_DIR
)/mklibs-stamp