Skip to content

Commit

Permalink
Merge branch 'bjorn/clean-up-bootstraps' into dev
Browse files Browse the repository at this point in the history
* bjorn/clean-up-bootstraps:
  Merge the fourth bootstrap stage into the third bootstrap stage
  Remove unused lib/orber/include/Makefile
  Remove lib/orber/include/* from the primary bootstrap
  otp_build update_primary: Don't commit generated source files
  primary bootstrap: Remove source files
  • Loading branch information
bjorng committed Sep 19, 2011
2 parents 171407b + bb3f5af commit 720b39f
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 16,415 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Expand Up @@ -15,6 +15,12 @@ autom4te.cache
!/erts/preloaded/ebin/*.beam
!/lib/*/test/*_SUITE_data/*.beam

#
# Generated source code files.
#
/bootstrap/lib/compiler/egen
/bootstrap/lib/stdlib/egen

# Compiler derivatives
#
# Do not use too creative wildcards.
Expand Down Expand Up @@ -98,12 +104,12 @@ make/win32/

/bootstrap/bin/*
/bootstrap/target
!/bootstrap/bin/*.script
!/bootstrap/bin/*.boot

/bootstrap/lib/asn1
/bootstrap/lib/hipe
/bootstrap/lib/ic
/bootstrap/lib/orber
/bootstrap/lib/parsetools
/bootstrap/lib/sasl
/bootstrap/lib/snmp
Expand Down
24 changes: 13 additions & 11 deletions Makefile.in
Expand Up @@ -349,8 +349,7 @@ endif
all_bootstraps: emulator \
bootstrap_setup \
secondary_bootstrap_build secondary_bootstrap_copy \
tertiary_bootstrap_build tertiary_bootstrap_copy \
fourth_bootstrap_build fourth_bootstrap_copy
tertiary_bootstrap_build tertiary_bootstrap_copy

#
# Use these targets when you want to use the erl and erlc
Expand Down Expand Up @@ -563,6 +562,8 @@ secondary_bootstrap_copy:
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools/ebin ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools/ebin ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools/include ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools/include ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/orber ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/orber ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/orber/include ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/orber/include ; fi
for x in lib/parsetools/ebin/*.beam; do \
BN=`basename $$x`; \
TF=$(BOOTSTRAP_ROOT)/bootstrap/lib/parsetools/ebin/$$BN; \
Expand Down Expand Up @@ -610,6 +611,16 @@ secondary_bootstrap_copy:
true; \
done
# cp -f lib/asn1/src/*.erl lib/asn1/src/*.hrl $(BOOTSTRAP_ROOT)/bootstrap/lib/asn1/src
for x in lib/orber/include/*.hrl; do \
BN=`basename $$x`; \
TF=$(BOOTSTRAP_ROOT)/bootstrap/lib/orber/include/$$BN; \
test -f $$TF && \
test '!' -z "`find $$x -newer $$TF -print`" && \
cp $$x $$TF; \
test '!' -f $$TF && \
cp $$x $$TF; \
true; \
done

tertiary_bootstrap_build:
cd lib && \
Expand All @@ -631,13 +642,6 @@ tertiary_bootstrap_copy:
true; \
done
# cp lib/snmp/ebin/*.beam $(BOOTSTRAP_ROOT)/bootstrap/lib/snmp/ebin

fourth_bootstrap_build:
cd lib && \
ERL_TOP=$(ERL_TOP) PATH=$(BOOT_PREFIX)$${PATH} \
$(MAKE) opt FOURTH_BOOTSTRAP=true

fourth_bootstrap_copy:
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl/ebin ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl/ebin ; fi
if test ! -d $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl/include ; then mkdir $(BOOTSTRAP_ROOT)/bootstrap/lib/sasl/include ; fi
Expand Down Expand Up @@ -724,7 +728,6 @@ fourth_bootstrap_copy:
cp $$x $$TF; \
true; \
done

# cp lib/syntax_tools/ebin/*.beam $(BOOTSTRAP_ROOT)/bootstrap/lib/syntax_tools/ebin

.PHONY: check_recreate_primary_bootstrap recreate_primary_bootstrap
Expand Down Expand Up @@ -896,7 +899,6 @@ old_bootstrap_nc_for_ne_all_stages:
cd lib && $(MAKE) BOOTSTRAP=1 TYPE=release release
cd lib && $(MAKE) SECONDARY_BOOTSTRAP=1 TYPE=release release
cd lib && $(MAKE) TERTIARY_BOOTSTRAP=1 TYPE=release release
cd lib && $(MAKE) FOURTH_BOOTSTRAP=1 TYPE=release release



Expand Down
113 changes: 0 additions & 113 deletions bootstrap/bin/start.script

This file was deleted.

113 changes: 0 additions & 113 deletions bootstrap/bin/start_clean.script

This file was deleted.

67 changes: 0 additions & 67 deletions bootstrap/lib/compiler/ebin/compiler.app

This file was deleted.

1 change: 0 additions & 1 deletion bootstrap/lib/compiler/ebin/compiler.appup

This file was deleted.

0 comments on commit 720b39f

Please sign in to comment.