diff --git a/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/lib/Makefile b/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/lib/Makefile
index 3405739a..ce85723a 100644
--- a/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-MODULE := libonlp-arm-accton-as4610-30
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_accton_as4610 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-accton-as4610-30.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-accton-as4610-30
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/onlpdump/Makefile
index f6a0f5dc..575cfe84 100644
--- a/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/armel/as4610/as4610-30/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_accton_as4610 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-accton-as4610-30
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/lib/Makefile b/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/lib/Makefile
index cdadc9bd..d079d90f 100644
--- a/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-MODULE := libonlp-arm-accton-as4610-54
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_accton_as4610 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-accton-as4610-54.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-accton-as4610-54
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/onlpdump/Makefile
index f6a0f5dc..d2e01685 100644
--- a/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/armel/as4610/as4610-54/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_accton_as4610 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-accton-as4610-54
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/lib/Makefile b/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/lib/Makefile
index 5456c2da..bf2c49f7 100644
--- a/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/lib/Makefile
@@ -1,44 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armhf.mk
-
-MODULE := libonlp-arm-accton-as4610-30
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_accton_as4610 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-accton-as4610-30.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+ARCH := armhf
+PLATFORM := arm-accton-as4610-30
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/onlpdump/Makefile
index 64d98aca..dedd8039 100644
--- a/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/armhf/as4610/as4610-30/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armhf.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_accton_as4610 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+ARCH := armhf
+PLATFORM := arm-accton-as4610-30
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/lib/Makefile b/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/lib/Makefile
index 3781c17c..1b52c791 100644
--- a/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/lib/Makefile
@@ -1,44 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armhf.mk
-
-MODULE := libonlp-arm-accton-as4610-54
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_accton_as4610 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-accton-as4610-54.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+ARCH := armhf
+PLATFORM := arm-accton-as4610-54
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/onlpdump/Makefile
index 64d98aca..5ca27560 100644
--- a/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/armhf/as4610/as4610-54/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armhf.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_accton_as4610 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+ARCH := armhf
+PLATFORM := arm-accton-as4610-54
+PLATFORM_MODULE := arm_accton_as4610
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/lib/Makefile b/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/lib/Makefile
index d0f14a8b..1f642cc8 100644
--- a/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-accton-as4600-54t
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_accton_as4600_54t onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-accton-as4600-54t.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as4600-54t
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/onlpdump/Makefile
index 3baa88fa..e4d5bac4 100644
--- a/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/powerpc/as4600-54t/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_accton_as4600_54t onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as4600-54t
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/lib/Makefile b/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/lib/Makefile
index b31585d9..86d82c2c 100644
--- a/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-accton-as5610-52x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_accton_as5610_52x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-accton-as5610-52x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as5610-52x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/onlpdump/Makefile
index 5b542b87..e60823d4 100644
--- a/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/powerpc/as5610-52x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_accton_as5610_52x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as5610-52x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/powerpc/as5710-54x/onlp/PKG.yml b/packages/platforms/accton/powerpc/as5710-54x/onlp/PKG.yml
index 33609f93..7a0bb6d4 100644
--- a/packages/platforms/accton/powerpc/as5710-54x/onlp/PKG.yml
+++ b/packages/platforms/accton/powerpc/as5710-54x/onlp/PKG.yml
@@ -20,7 +20,7 @@ packages:
files:
builds/lib/$BUILD_DIR/powerpc-linux-gnu/bin/libonlp-${r0_platform}.so : ${r0_install}/lib/libonlp-${r0_platform}.so
- builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlpdump : ${r0_install}/bin/
+ builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlps : ${r0_install}/bin/
changelog: Change changes changes.,
@@ -30,7 +30,7 @@ packages:
files:
builds/lib/$BUILD_DIR/powerpc-linux-gnu/bin/libonlp-${r0_platform}.so : ${r0b_install1}/lib/libonlp-${r0b_platform1}-r0b.so
- builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlpdump : ${r0b_install1}/bin/
+ builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlps : ${r0b_install1}/bin/
changelog: Change changes changes.,
@@ -39,11 +39,6 @@ packages:
files:
builds/lib/$BUILD_DIR/powerpc-linux-gnu/bin/libonlp-${r0_platform}.so : ${r0b_install2}/lib/libonlp-${r0b_platform2}-r0b.so
- builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlpdump : ${r0b_install2}/bin/
+ builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlps : ${r0b_install2}/bin/
changelog: Change changes changes.,
-
-
-
-
-
diff --git a/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/lib/Makefile
index ff097bc8..e3d461eb 100644
--- a/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/lib/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-as5710-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_accton_as5710_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-accton-as5710-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
-clean: superclean
\ No newline at end of file
+PLATFORM := powerpc-accton-as5710-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/onlpdump/Makefile
index 1adcdd26..e581fa30 100644
--- a/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/powerpc/as5710-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_accton_as5710_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as5710-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/powerpc/as6700-32x/onlp/PKG.yml b/packages/platforms/accton/powerpc/as6700-32x/onlp/PKG.yml
index a6e6ef18..68c37c68 100644
--- a/packages/platforms/accton/powerpc/as6700-32x/onlp/PKG.yml
+++ b/packages/platforms/accton/powerpc/as6700-32x/onlp/PKG.yml
@@ -18,18 +18,11 @@ packages:
files:
builds/lib/$BUILD_DIR/powerpc-linux-gnu/bin/libonlp-${platformbase}.so : ${r0_install}/lib/libonlp-${platformbase}.so
- builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlpdump : ${r0_install}/bin/
+ builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlps : ${r0_install}/bin/
- name: onlp-${platformbase}-r1
summary: ONLP Package for the ${platformbase}-r1 platform.
files:
builds/lib/$BUILD_DIR/powerpc-linux-gnu/bin/libonlp-${platformbase}.so : ${r1_install}/lib/libonlp-${platformbase}.so
- builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlpdump : ${r1_install}/bin/
-
-
-
-
-
-
-
+ builds/onlpdump/$BUILD_DIR/powerpc-linux-gnu/bin/onlps : ${r1_install}/bin/
diff --git a/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/lib/Makefile
index a5120880..2cf14d03 100644
--- a/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-accton-as6700-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_accton_as6700_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-accton-as6700-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as6700-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/onlpdump/Makefile
index a06b4ad1..c1b3f0af 100644
--- a/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/powerpc/as6700-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_accton_as6700_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-accton-as6700-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/lib/Makefile
index 94c325d2..8d3b1052 100755
--- a/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as4222-28pe
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as4222_28pe onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as4222-28pe.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as4222-28pe
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/onlpdump/Makefile
index f720f437..0418bdab 100755
--- a/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as4222_28pe onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as4222-28pe
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/lib/Makefile
index 7709bd65..1b2b0816 100755
--- a/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as4630-54pe
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as4630_54pe onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as4630-54pe.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as4630-54pe
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/onlpdump/Makefile
index b44786f2..d2558834 100755
--- a/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as4630_54pe onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as4630-54pe
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/lib/Makefile
index 983ad76c..4b26f083 100644
--- a/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5512-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5512_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5512-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5512-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/onlpdump/Makefile
index 68f2a998..e12697a2 100644
--- a/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5512-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5512_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5512-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/lib/Makefile
index 823dbc06..1cfe947d 100644
--- a/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5712-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5712_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5712-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5712-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/onlpdump/Makefile
index 6a32762f..87a864b4 100644
--- a/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5712-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5712_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5712-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/lib/Makefile
index e2613e62..967ea70f 100644
--- a/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5812-54t
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5812_54t onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5812-54t.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5812-54t
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/onlpdump/Makefile
index cfc7ccb9..2c836cc9 100644
--- a/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5812-54t/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5812_54t onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5812-54t
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/lib/Makefile
index 35131c9a..14a2929c 100644
--- a/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5812-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5812_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5812-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5812-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/onlpdump/Makefile
index 5e95fa3c..ab4c6aff 100644
--- a/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5812-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5812_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5812-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/lib/Makefile
index 5323ca5a..aca9dff1 100644
--- a/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5822-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5822_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5822-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5822-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/onlpdump/Makefile
index 60a9e361..a7326995 100644
--- a/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5822-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5822_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5822-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/lib/Makefile
index 36dabe22..4e6de8f4 100644
--- a/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5912-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5912_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5912-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5912-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/onlpdump/Makefile
index 94ded3f9..cbf9a536 100644
--- a/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5912-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5912_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5912-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/lib/Makefile
index 02c4a0cd..dcb85e98 100644
--- a/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5912-54xk
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5912_54xk onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5912-54xk.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5912-54xk
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/onlpdump/Makefile
index 5435cc0d..bbf67548 100644
--- a/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5912-54xk/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5912_54xk onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5912-54xk
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/lib/Makefile
index 32b55bb7..175940cc 100644
--- a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-26xb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_26xb onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-26xb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-26xb
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/onlpdump/Makefile
index 40aae7b3..0efc24ee 100644
--- a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_26xb onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-26xb
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/lib/Makefile
index 1f155bfc..5a617deb 100644
--- a/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/onlpdump/Makefile
index 0c41fbc0..7c16a790 100644
--- a/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/lib/Makefile
index dad1416d..c16b7364 100644
--- a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-54xk
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_54xk onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-54xk.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xk
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/onlpdump/Makefile
index d746bb0f..aa204754 100644
--- a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_54xk onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xk
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/lib/Makefile
index 5499ee1b..6ccd424e 100755
--- a/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-54xks
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_54xks onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-54xks.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xks
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/onlpdump/Makefile
index aa449fa6..b6c297ab 100755
--- a/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xks/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_54xks onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xks
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/lib/Makefile
index 63db397f..e0d4a335 100755
--- a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-54xl
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_54xl onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-54xl.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xl
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/onlpdump/Makefile
index ff9f8fa7..bf859d55 100755
--- a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_54xl onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xl
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/lib/Makefile
index 332cd2c9..26218537 100644
--- a/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as5916-54xm
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as5916_54xm onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as5916-54xm.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xm
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/onlpdump/Makefile
index 0f248885..33bb7bcb 100644
--- a/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as5916-54xm/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as5916_54xm onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as5916-54xm
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/lib/Makefile
index 6efdaabb..539c2d0d 100644
--- a/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as6712-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as6712_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as6712-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as6712-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/onlpdump/Makefile
index 1f3700a8..7a042b7a 100644
--- a/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as6712-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as6712_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as6712-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/lib/Makefile
index 09c2680a..e645fed6 100644
--- a/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as6812-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as6812_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as6812-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as6812-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/onlpdump/Makefile
index b7fee5fc..5203b7a4 100644
--- a/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as6812-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as6812_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as6812-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/lib/Makefile
index a401dca2..ffb3bbd5 100755
--- a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7112-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7112_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7112-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7112-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/onlpdump/Makefile
index 4efbb417..451888b7 100755
--- a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7112_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7112-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/lib/Makefile
index 78d50ac3..ec04da26 100644
--- a/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7312-54x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7312_54x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7312-54x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7312-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/onlpdump/Makefile
index 728730bb..1bbbe349 100644
--- a/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7312-54x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7312_54x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7312-54x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/lib/Makefile
index 6fbac51c..ce61c38c 100644
--- a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7312-54xs
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7312_54xs onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7312-54xs.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7312-54xs
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/onlpdump/Makefile
index 712819b6..c260e201 100644
--- a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7312_54xs onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7312-54xs
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/lib/Makefile
index 175beb76..a0259462 100644
--- a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7316-26xb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7316_26xb onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7316-26xb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7316-26xb
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/onlpdump/Makefile
index 40787128..01019eee 100644
--- a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7316_26xb onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7316-26xb
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/lib/Makefile
index 51dfecd1..609dbb0f 100644
--- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7326-56x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7326_56x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7326-56x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7326-56x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/onlpdump/Makefile
index 10ffd95b..2292c2f2 100644
--- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7326_56x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7326-56x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/lib/Makefile
index a40fa3b9..9e0ccfa9 100644
--- a/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7512-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7512_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7512-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7512-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/onlpdump/Makefile
index 12a4b780..bead16b2 100644
--- a/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7512-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7512_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7512-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/lib/Makefile
index df841d6d..4214af56 100644
--- a/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7712-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7712_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7712-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7712-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/onlpdump/Makefile
index b9516610..da14fab8 100644
--- a/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7712-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7712_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7712-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/lib/Makefile
index 5420f259..bce44e41 100644
--- a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7716-24sc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7716_24sc onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7716-24sc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-24sc
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/onlpdump/Makefile
index 478e8405..3ab73ab1 100644
--- a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7716_24sc onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-24sc
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/lib/Makefile
index 490562e6..7e1c894e 100644
--- a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7716-24xc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7716_24xc onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7716-24xc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-24xc
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/onlpdump/Makefile
index 9e988a21..3e788bcf 100644
--- a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7716_24xc onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-24xc
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/lib/Makefile
index 46c06248..f8399bd7 100644
--- a/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7716-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7716_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7716-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/onlpdump/Makefile
index a6450e34..c1a89cc0 100644
--- a/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7716-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7716_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7716-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/lib/Makefile
index be977f95..e4bf72cc 100755
--- a/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7726-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7726_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7726-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7726-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/onlpdump/Makefile
index ab39002a..24c7709e 100755
--- a/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7726-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7726_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7726-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/lib/Makefile
index eb25a458..9d0766c9 100644
--- a/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7816-64x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7816_64x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7816-64x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7816-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/onlpdump/Makefile
index ad16e632..f6b1ddca 100644
--- a/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7816-64x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7816_64x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7816-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/lib/Makefile
index bdcecbe8..3981de89 100644
--- a/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as7926-80xk
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as7926_80xk onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as7926-80xk.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7926-80xk
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/onlpdump/Makefile
index 007bccb4..8513a323 100644
--- a/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as7926-80xk/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as7926_80xk onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as7926-80xk
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/lib/Makefile
index 46bc4719..ebb2d96d 100755
--- a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-as9716-32d
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_as9716_32d onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-as9716-32d.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as9716-32d
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/onlpdump/Makefile
index 190fe375..cca73cfc 100755
--- a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_as9716_32d onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-as9716-32d
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/src/.gitignore b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/src/.gitignore
index e69de29b..7df89da1 100755
--- a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/src/.gitignore
+++ b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/src/.gitignore
@@ -0,0 +1 @@
+x86_64_accton_as9716_32d.mk
diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/lib/Makefile
index 8c1691c5..ce14fff0 100755
--- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-asgvolt64
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_asgvolt64 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-asgvolt64.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-asgvolt64
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/onlpdump/Makefile
index d5213b77..70186e2e 100755
--- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_asgvolt64 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-asgvolt64
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/lib/Makefile
index 6d342795..2fdb8a7f 100755
--- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-asxvolt16
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_asxvolt16 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-asxvolt16.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-asxvolt16
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/onlpdump/Makefile
index c734569c..1c860a13 100755
--- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_asxvolt16 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-asxvolt16
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/csp9250/onlp/builds/lib/Makefile
index bdf072c1..74e20bea 100755
--- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-csp9250
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_csp9250 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-csp9250.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-csp9250
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/csp9250/onlp/builds/onlpdump/Makefile
index 78e0ca0a..fd028d62 100755
--- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_csp9250 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-csp9250
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/minipack/onlp/builds/lib/Makefile
index 8e1a4384..d1e4b22a 100644
--- a/packages/platforms/accton/x86-64/minipack/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-minipack
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_minipack onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-minipack.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-minipack
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/minipack/onlp/builds/onlpdump/Makefile
index c980fa3f..f0f6e399 100644
--- a/packages/platforms/accton/x86-64/minipack/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_minipack onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-minipack
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/lib/Makefile
index 375afdc2..682ef91a 100644
--- a/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-wedge100-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_wedge100_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-wedge100-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/onlpdump/Makefile
index 34d5a52a..8218cfd7 100644
--- a/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_wedge100_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/lib/Makefile
index 6733959b..3cb496c1 100644
--- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-wedge100bf-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_wedge100bf_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-wedge100bf-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100bf-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/onlpdump/Makefile
index f828c871..b70df0d5 100644
--- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_wedge100bf_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100bf-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/lib/Makefile
index 486d83c1..c553af6f 100644
--- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-wedge100bf-65x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_wedge100bf_65x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-wedge100bf-65x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100bf-65x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/onlpdump/Makefile
index 4cc10ffb..f84c7349 100644
--- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_wedge100bf_65x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100bf-65x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/lib/Makefile b/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/lib/Makefile
index 54e34001..1c5d4455 100644
--- a/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/lib/Makefile
@@ -1,44 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-accton-wedge100s-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_accton_wedge100s_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-accton-wedge100s-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-accton-wedge100s-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/onlpdump/Makefile
index 1aa18ee5..73927b88 100644
--- a/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/accton/x86-64/wedge100s-32x/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_accton_wedge100s_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-accton-wedge100s-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/lib/Makefile b/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/lib/Makefile
index 87ec8e0d..8f62eb2e 100644
--- a/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/lib/Makefile
+++ b/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-alphanetworks-snx60a0-486f
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_alphanetworks_snx60a0_486f onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-alphanetworks-snx60a0-486f.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-alphanetworks-snx60a0-486f
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/onlpdump/Makefile b/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/onlpdump/Makefile
index 7035ea16..32e837c9 100644
--- a/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/alphanetworks/x86-64/snx60a0-486f/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_alphanetworks_snx60a0_486f onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-alphanetworks-snx60a0-486f
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/lib/Makefile b/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/lib/Makefile
index 6203fb4e..0db6847d 100644
--- a/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/lib/Makefile
+++ b/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-cel-redstone-xp
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_cel_redstone_xp onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-cel-redstone-xp.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-cel-redstone-xp
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/onlpdump/Makefile b/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/onlpdump/Makefile
index e1816c0c..cc89c612 100644
--- a/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/celestica/x86-64/redstone-xp/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_cel_redstone_xp onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-cel-redstone-xp
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/lib/Makefile b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/lib/Makefile
index 8e449476..059695cb 100755
--- a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-MODULE := libonlp-arm-delta-ag6248c-poe
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_delta_ag6248c onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-delta-ag6248c-poe.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-delta-ag6248c-poe
+PLATFORM_MODULE := arm_delta_ag6248c
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/onlpdump/Makefile
index 3fe979f3..f39750d8 100755
--- a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c-poe/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_delta_ag6248c onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-delta-ag6248c-poe
+PLATFORM_MODULE := arm_delta_ag6248c
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/lib/Makefile b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/lib/Makefile
index 46fdfee8..e3870038 100644
--- a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/lib/Makefile
@@ -1,44 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-MODULE := libonlp-arm-delta-ag6248c
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_delta_ag6248c onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-delta-ag6248c.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-delta-ag6248c
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/onlpdump/Makefile
index 3fe979f3..70bb3ed8 100644
--- a/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/armel/ag6248c/arm-delta-ag6248c/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_delta_ag6248c onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-delta-ag6248c
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag5648/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag5648/onlp/builds/lib/Makefile
index bec767b5..55e27776 100644
--- a/packages/platforms/delta/x86-64/ag5648/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag5648/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag5648
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag5648 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag5648.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag5648
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag5648/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag5648/onlp/builds/onlpdump/Makefile
index 69f7730b..07352151 100644
--- a/packages/platforms/delta/x86-64/ag5648/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag5648/onlp/builds/onlpdump/Makefile
@@ -1,47 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-# Copyright (C) 2017 Delta Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag5648 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag5648
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag7648/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag7648/onlp/builds/lib/Makefile
index 1f2790b3..17386727 100644
--- a/packages/platforms/delta/x86-64/ag7648/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag7648/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag7648
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag7648 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag7648.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag7648
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag7648/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag7648/onlp/builds/onlpdump/Makefile
index 9a3129c0..61487189 100644
--- a/packages/platforms/delta/x86-64/ag7648/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag7648/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag7648 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag7648
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/lib/Makefile
index 1cfcb406..9a7f8525 100644
--- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag7648c
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag7648c onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag7648c.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag7648c
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/onlpdump/Makefile
index bc539466..7346b18f 100644
--- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag7648c onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag7648c
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag8032/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag8032/onlp/builds/lib/Makefile
index 0657b68b..aa6405ba 100644
--- a/packages/platforms/delta/x86-64/ag8032/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag8032/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag8032
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag8032 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag8032.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag8032
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag8032/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag8032/onlp/builds/onlpdump/Makefile
index 833ae998..1a1c8608 100644
--- a/packages/platforms/delta/x86-64/ag8032/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag8032/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag8032 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag8032
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/lib/Makefile
index 8613679b..ee7153cc 100644
--- a/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag9032v1
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag9032v1 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag9032v1.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v1
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/onlpdump/Makefile
index d8d00a81..f0fdbaa4 100644
--- a/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v1/onlp/builds/onlpdump/Makefile
@@ -1,47 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-# Copyright (C) 2017 Delta Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag9032v1 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v1
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/lib/Makefile
index c9339e4b..c1680224 100644
--- a/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag9032v2
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag9032v2 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag9032v2.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v2
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/onlpdump/Makefile
index 849c7a0d..e5f6d88d 100644
--- a/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v2/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag9032v2 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v2
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/lib/Makefile
index b1f2579b..88551af3 100644
--- a/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag9032v2a
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag9032v2a onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag9032v2a.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v2a
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/onlpdump/Makefile
index 5bbac151..f6f7516b 100644
--- a/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag9032v2a/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag9032v2a onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9032v2a
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ag9064/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ag9064/onlp/builds/lib/Makefile
index d9ab2f0b..85e46dae 100755
--- a/packages/platforms/delta/x86-64/ag9064/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ag9064/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ag9064
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ag9064 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ag9064.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9064
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ag9064/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ag9064/onlp/builds/onlpdump/Makefile
index 8cd72b47..bfec5d04 100755
--- a/packages/platforms/delta/x86-64/ag9064/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ag9064/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ag9064 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ag9064
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/agc5648s/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/agc5648s/onlp/builds/lib/Makefile
index ece5857b..0fb1d1a9 100755
--- a/packages/platforms/delta/x86-64/agc5648s/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/agc5648s/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-agc5648s
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_agc5648s onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-agc5648s.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc5648s
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/agc5648s/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/agc5648s/onlp/builds/onlpdump/Makefile
index dedb03d0..b539c270 100755
--- a/packages/platforms/delta/x86-64/agc5648s/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/agc5648s/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_agc5648s onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc5648s
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/lib/Makefile
index 243fba61..d8a8b86b 100644
--- a/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-agc7646slv1b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_agc7646slv1b onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-agc7646slv1b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7646slv1b
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/onlpdump/Makefile
index a31ce258..11fd0742 100644
--- a/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/agc7646slv1b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_agc7646slv1b onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7646slv1b
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/agc7648a/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/agc7648a/onlp/builds/lib/Makefile
index 799494b1..b5589324 100644
--- a/packages/platforms/delta/x86-64/agc7648a/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/agc7648a/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-agc7648a
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_agc7648a onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-agc7648a.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7648a
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/agc7648a/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/agc7648a/onlp/builds/onlpdump/Makefile
index 286d2150..7ad7c797 100644
--- a/packages/platforms/delta/x86-64/agc7648a/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/agc7648a/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_agc7648a onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7648a
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/lib/Makefile
index 2b1ca74c..2fb11113 100644
--- a/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-agc7648sv1
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_agc7648sv1 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-agc7648sv1.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7648sv1
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/onlpdump/Makefile
index bf472fe6..93b5b860 100644
--- a/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/agc7648sv1/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_agc7648sv1 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-agc7648sv1
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/ak7448/onlp/builds/lib/Makefile
index d1482b0d..74c38340 100644
--- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-ak7448
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_ak7448 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-ak7448.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ak7448
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/ak7448/onlp/builds/onlpdump/Makefile
index cfb370a0..f70f7a40 100644
--- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_ak7448 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-ak7448
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/delta/x86-64/wb2448/onlp/builds/lib/Makefile b/packages/platforms/delta/x86-64/wb2448/onlp/builds/lib/Makefile
index 85555dcf..799fe6cd 100755
--- a/packages/platforms/delta/x86-64/wb2448/onlp/builds/lib/Makefile
+++ b/packages/platforms/delta/x86-64/wb2448/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-delta-wb2448
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_delta_wb2448 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-delta-wb2448.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-wb2448
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/delta/x86-64/wb2448/onlp/builds/onlpdump/Makefile b/packages/platforms/delta/x86-64/wb2448/onlp/builds/onlpdump/Makefile
index 85ac6f8d..f0a122db 100755
--- a/packages/platforms/delta/x86-64/wb2448/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/delta/x86-64/wb2448/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_delta_wb2448 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-delta-wb2448
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/lib/Makefile b/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/lib/Makefile
index 644a9070..a5579493 100755
--- a/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/lib/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-ingrasys-s9100
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_ingrasys_s9100 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-ingrasys-s9100.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-ingrasys-s9100
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/onlpdump/Makefile b/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/onlpdump/Makefile
index da86108f..2a89d34f 100755
--- a/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9100/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_ingrasys_s9100 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-ingrasys-s9100
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/lib/Makefile b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/lib/Makefile
index cafc27df..0a0cec49 100755
--- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/lib/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-ingrasys-s9180-32x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_ingrasys_s9180_32x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-ingrasys-s9180-32x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-ingrasys-s9180-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/onlpdump/Makefile b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/onlpdump/Makefile
index 399c4b02..b78738c5 100755
--- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_ingrasys_s9180_32x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-ingrasys-s9180-32x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/lib/Makefile b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/lib/Makefile
index ad00e339..adaa35b6 100755
--- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/lib/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-ingrasys-s9230-64x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_ingrasys_s9230_64x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-ingrasys-s9230-64x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-ingrasys-s9230-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/onlpdump/Makefile b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/onlpdump/Makefile
index e4f319cb..0674704e 100755
--- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_ingrasys_s9230_64x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-ingrasys-s9230-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/lib/Makefile b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/lib/Makefile
index a47f76a4..67a50163 100755
--- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/lib/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-ingrasys-s9280-64x
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_ingrasys_s9280_64x onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-ingrasys-s9280-64x.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-ingrasys-s9280-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/onlpdump/Makefile b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/onlpdump/Makefile
index 84222f31..633a6d87 100755
--- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_ingrasys_s9280_64x onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-ingrasys-s9280-64x
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d10056/onlp/builds/lib/Makefile
index 2db06082..0ad6d8bd 100644
--- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d10056
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d10056 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d10056.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d10056
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d10056/onlp/builds/onlpdump/Makefile
index 1e431ddf..8516743e 100644
--- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d10056 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d10056
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d10064/Makefile b/packages/platforms/inventec/x86-64/d10064/Makefile
deleted file mode 120000
index 50dfefab..00000000
--- a/packages/platforms/inventec/x86-64/d10064/Makefile
+++ /dev/null
@@ -1 +0,0 @@
-../x86-64-inventec-d5264q28b/Makefile
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d10064/Makefile b/packages/platforms/inventec/x86-64/d10064/Makefile
new file mode 100644
index 00000000..003238cf
--- /dev/null
+++ b/packages/platforms/inventec/x86-64/d10064/Makefile
@@ -0,0 +1 @@
+include $(ONL)/make/pkg.mk
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore b/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore
deleted file mode 120000
index a0579ed2..00000000
--- a/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-../../../x86-64-inventec-d5264q28b/modules/builds/.gitignore
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore b/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore
new file mode 100644
index 00000000..c3af8579
--- /dev/null
+++ b/packages/platforms/inventec/x86-64/d10064/modules/builds/.gitignore
@@ -0,0 +1 @@
+lib/
diff --git a/packages/platforms/inventec/x86-64/d10064/modules/builds/src b/packages/platforms/inventec/x86-64/d10064/modules/builds/src
index b75cb44c..43ee7eae 120000
--- a/packages/platforms/inventec/x86-64/d10064/modules/builds/src
+++ b/packages/platforms/inventec/x86-64/d10064/modules/builds/src
@@ -1 +1 @@
-../../../x86-64-inventec-d5264q28b/modules/builds/src/
\ No newline at end of file
+../../../d5264q28b/modules/builds/src
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile
deleted file mode 120000
index 99230419..00000000
--- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile
+++ /dev/null
@@ -1 +0,0 @@
-../../../x86-64-inventec-d5264q28b/onlp/builds/Makefile
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile
new file mode 100644
index 00000000..e7437cb2
--- /dev/null
+++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/Makefile
@@ -0,0 +1,2 @@
+FILTER=src
+include $(ONL)/make/subdirs.mk
diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/builds/lib/Makefile
index f0d6b886..882956eb 100644
--- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d10064
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d10064 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d10064.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d10064
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/builds/onlpdump/Makefile
index 95d351f0..f85f6698 100644
--- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d10064 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d10064
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh b/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh
index ed70d39b..1d26c292 120000
--- a/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh
+++ b/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh
@@ -1 +1 @@
-../../../../../x86-64-inventec-d5264q28b/platform-config/r0/src/lib/healthstatus.sh
\ No newline at end of file
+../../../../../d5264q28b/platform-config/r0/src/lib/healthstatus.sh
\ No newline at end of file
diff --git a/packages/platforms/inventec/x86-64/d5052/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d5052/onlp/builds/lib/Makefile
index b2e9a25e..e908841d 100644
--- a/packages/platforms/inventec/x86-64/d5052/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d5052/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d5052
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d5052 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d5052.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5052
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d5052/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d5052/onlp/builds/onlpdump/Makefile
index 492fa369..a7ce08a4 100644
--- a/packages/platforms/inventec/x86-64/d5052/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d5052/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d5052 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5052
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d5254/onlp/builds/lib/Makefile
index 4ad633a3..88c276d6 100644
--- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d5254
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d5254 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d5254.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5254
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d5254/onlp/builds/onlpdump/Makefile
index 0f252b11..cef679c7 100644
--- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d5254 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5254
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/lib/Makefile
index e2588772..22ac1f52 100644
--- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d5264q28b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d5264q28b onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d5264q28b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5264q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/onlpdump/Makefile
index e6ab65e9..a17e2fdc 100644
--- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d5264q28b onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d5264q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/lib/Makefile
index f7e24c9b..9758a4b3 100644
--- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d6254qs
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d6254qs onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d6254qs.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d6254qs
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/onlpdump/Makefile
index 34a494be..ad6d4970 100644
--- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d6254qs onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d6254qs
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d6556/onlp/builds/lib/Makefile
index 94067247..a4d4ff07 100644
--- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d6556
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d6556 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d6556.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d6556
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d6556/onlp/builds/onlpdump/Makefile
index c8fa58d8..a0acc5c8 100644
--- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d6556 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d6556
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/lib/Makefile
index e8a03987..c88d3907 100644
--- a/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d7032q28b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d7032q28b onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d7032q28b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7032q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/onlpdump/Makefile
index c5c87ab8..41e092a0 100644
--- a/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d7032q28b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d7032q28b onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7032q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/lib/Makefile
index e874a161..0b976974 100644
--- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d7054q28b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d7054q28b onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d7054q28b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7054q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/onlpdump/Makefile
index 433f17e5..97bb155d 100644
--- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d7054q28b onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7054q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/lib/Makefile b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/lib/Makefile
index 60b70c30..8156532b 100644
--- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/lib/Makefile
+++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-inventec-d7264q28b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_inventec_d7264q28b onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-inventec-d7264q28b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7264q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/onlpdump/Makefile b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/onlpdump/Makefile
index 6b23d82f..4c7c2075 100644
--- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_inventec_d7264q28b onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-inventec-d7264q28b
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/lib/Makefile b/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/lib/Makefile
index 22a6ee9a..e830036c 100644
--- a/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/lib/Makefile
+++ b/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-kvm-x86-64
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_kvm_x86_64 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-kvm-x86-64.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-kvm-x86-64
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/onlpdump/Makefile b/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/onlpdump/Makefile
index 3e072ecf..3670a4f3 100644
--- a/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/kvm/x86-64/x86-64-kvm-x86-64/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_kvm_x86_64 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-kvm-x86-64
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/lib/Makefile b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/lib/Makefile
index c4d47db6..fc221c7a 100644
--- a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/lib/Makefile
+++ b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-lenovo-ne10032
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_lenovo_ne10032 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-lenovo-ne10032.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-lenovo-ne10032
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/onlpdump/Makefile b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/onlpdump/Makefile
index 41ece0e6..fb48fe9c 100644
--- a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_lenovo_ne10032 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-lenovo-ne10032
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/lib/Makefile b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/lib/Makefile
index a7c19d4e..3ab02800 100644
--- a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/lib/Makefile
+++ b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-lenovo-ne2572
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_lenovo_ne2572 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-lenovo-ne2572.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-lenovo-ne2572
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/onlpdump/Makefile b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/onlpdump/Makefile
index fe0644c8..45efb647 100644
--- a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_lenovo_ne2572 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-lenovo-ne2572
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/lib/Makefile
index 765baa47..fc7e3e85 100644
--- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-mqm8700
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_mqm8700 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-mqm8700.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-mqm8700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/onlpdump/Makefile
index 58b6ac82..7e0caf5a 100644
--- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_mqm8700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-mqm8700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/lib/Makefile
index f6019894..5489777a 100644
--- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2010
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2010 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2010.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2010
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/onlpdump/Makefile
index b6a3ffd5..ca9ae572 100644
--- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2010 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2010
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/lib/Makefile
index ff8eab0d..5543e187 100644
--- a/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2100
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2100 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2100.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2100
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/onlpdump/Makefile
index 31edf7c0..70527ce9 100644
--- a/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2100/onlp/builds/onlpdump/Makefile
@@ -1,47 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2100 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2100
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/lib/Makefile
index c20febe4..a58b009e 100644
--- a/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/lib/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2100b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2100 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2100b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2100b
+PLATFORM_MODULE := x86_64_mlnx_msn2100
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/onlpdump/Makefile
index e913e64a..c3131ec5 100644
--- a/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2100b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2100 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2100b
+PLATFORM_MODULE := x86_64_mlnx_msn2100
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/lib/Makefile
index 14c80951..787ea9a6 100644
--- a/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2410
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2410 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2410.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2410
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/onlpdump/Makefile
index 5adaf05b..ed2cfa99 100644
--- a/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2410/onlp/builds/onlpdump/Makefile
@@ -1,47 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2410 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2410
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/lib/Makefile
index 973ba049..d6439107 100644
--- a/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/lib/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2410b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2410 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2410b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2410b
+PLATFORM_MODULE := x86_64_mlnx_msn2410
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/onlpdump/Makefile
index c245c8e1..96faa210 100644
--- a/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2410b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2410 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2410b
+PLATFORM_MODULE := x86_64_mlnx_msn2410
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/lib/Makefile
index 002f4816..8884f164 100644
--- a/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2700
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2700 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2700.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/onlpdump/Makefile
index 24d431c7..b20a73b9 100644
--- a/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2700/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn2700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/lib/Makefile
index b13e63b8..98663322 100644
--- a/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/lib/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2700b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2700 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2700b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2700b
+PLATFORM_MODULE := x86_64_mlnx_msn2700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/onlpdump/Makefile
index dc4b9d4a..b1585302 100644
--- a/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2700b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2700b
+PLATFORM_MODULE := x86_64_mlnx_msn2700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/lib/Makefile
index 41006cf5..44c0c0e3 100644
--- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2740
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2740 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2740.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2740
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/onlpdump/Makefile
index 174fe7e1..aaffed5a 100644
--- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2740 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2740
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/lib/Makefile
index d6a375a8..ca5d536b 100644
--- a/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/lib/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn2740b
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2740 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn2740b.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2740b
+PLATFORM_MODULE := x86_64_mlnx_msn2740
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/onlpdump/Makefile
index 0e6a4ff3..af82bcfa 100644
--- a/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn2740b/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2740 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn2740b
+PLATFORM_MODULE := x86_64_mlnx_msn2740
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/lib/Makefile
index 04718484..7ce40756 100644
--- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn3700
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn3700 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn3700.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn3700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/onlpdump/Makefile
index 625beb6a..4341f9f1 100644
--- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn3700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn3700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/lib/Makefile
index 2de46808..cf4d76ab 100644
--- a/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/lib/Makefile
@@ -1,45 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn3700c
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn3700 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn3700c.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn3700c
+PLATFORM_MODULE := x86_64_mlnx_msn3700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/onlpdump/Makefile
index 35117643..406d7926 100644
--- a/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3700c/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,4 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn3700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-mlnx-msn3700c
+PLATFORM_MODULE := x86_64_mlnx_msn3700
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/lib/Makefile
index 990f0f90..dcc7fe20 100644
--- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/lib/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mlnx-msn3800
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn3800 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mlnx-msn3800.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn3800
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/onlpdump/Makefile
index ffe612f2..a6fdb0e3 100644
--- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn3800 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mlnx-msn3800
+EXTRA_MODULES := mlnx_common
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/modules/builds/Makefile b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/modules/builds/Makefile
index 8d609344..253a944d 100644
--- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/modules/builds/Makefile
+++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/modules/builds/Makefile
@@ -4,7 +4,7 @@ $(shell rm -f Kbuild)
$(foreach f, $(OBJLIST), $(file >> Kbuild, obj-m += $(f)))
# Settings used by ONL
KERNELS := onl-kernel-4.14-lts-x86-64-all:amd64
-KMODULES := $(ONL)/packages/platforms/mitac/x86-64/x86-64-mitac-ly1200-b32h0-c3/modules/builds
+KMODULES := $(ONL)/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/modules/builds
VENDOR := mitac
BASENAME := x86-64-mitac-ly1200-b32h0-c3
ARCH := x86_64
diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/lib/Makefile b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/lib/Makefile
index 0673ffcd..c82b5d2c 100644
--- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/lib/Makefile
+++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-mitac-ly1200-b32h0-c3
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_mitac_ly1200_b32h0_c3 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-mitac-ly1200-b32h0-c3.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mitac-ly1200-b32h0-c3
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/onlpdump/Makefile b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/onlpdump/Makefile
index 89e58f26..02c8c8c3 100644
--- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_mitac_ly1200_b32h0_c3 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-mitac-ly1200-b32h0-c3
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/lib/Makefile b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/lib/Makefile
index b7174f7d..7c521066 100755
--- a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-netberg-aurora-420-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_netberg_aurora_420_rangeley onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-netberg-aurora-420-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-netberg-aurora-420-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/onlpdump/Makefile
index b88bedd8..b5f79d78 100755
--- a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_netberg_aurora_420_rangeley onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-netberg-aurora-420-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/lib/Makefile b/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/lib/Makefile
index 473537ab..f99f8f40 100755
--- a/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-netberg-aurora-620-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_netberg_aurora_620_rangeley onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-netberg-aurora-620-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-netberg-aurora-620-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/onlpdump/Makefile
index f9857a76..6b26c655 100755
--- a/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-620-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_netberg_aurora_620_rangeley onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-netberg-aurora-620-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/lib/Makefile b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/lib/Makefile
index b8bccad2..9def5af1 100755
--- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/lib/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-netberg-aurora-710
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_netberg_aurora_710 onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-netberg-aurora-710.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-netberg-aurora-710
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/onlpdump/Makefile b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/onlpdump/Makefile
index 42e2b742..cb63f22e 100755
--- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_netberg_aurora_710 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-netberg-aurora-710
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/lib/Makefile b/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/lib/Makefile
index bacf5db7..56ccf34b 100755
--- a/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-netberg-aurora-720-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_netberg_aurora_720_rangeley onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-netberg-aurora-720-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-netberg-aurora-720-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/onlpdump/Makefile
index 01db18a4..43a184ea 100755
--- a/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/netberg/x86-64/aurora-720-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_netberg_aurora_720_rangeley onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-netberg-aurora-720-rangeley
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/lib/Makefile b/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/lib/Makefile
index a3c1e116..61c8a135 100644
--- a/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/lib/Makefile
+++ b/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-MODULE := libonlp-arm64-nxp-ls1043ardb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm64_nxp_layerscape onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm64-nxp-ls1043ardb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1043ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/onlpdump/Makefile b/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/onlpdump/Makefile
index 92193643..3c774d1a 100644
--- a/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/nxp/arm64/ls1043ardb/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm64_nxp_layerscape onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1043ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/lib/Makefile b/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/lib/Makefile
index 4e50ff4f..fcb361ac 100644
--- a/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/lib/Makefile
+++ b/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-MODULE := libonlp-arm64-nxp-ls1046ardb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm64_nxp_layerscape onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm64-nxp-ls1046ardb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1046ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/onlpdump/Makefile b/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/onlpdump/Makefile
index 92193643..0c376fde 100644
--- a/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/nxp/arm64/ls1046ardb/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm64_nxp_layerscape onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1046ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/lib/Makefile b/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/lib/Makefile
index cf0211ee..dd1e408b 100644
--- a/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/lib/Makefile
+++ b/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-MODULE := libonlp-arm64-nxp-ls1088ardb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm64_nxp_layerscape onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm64-nxp-ls1088ardb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1088ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/onlpdump/Makefile b/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/onlpdump/Makefile
index 92193643..81a60290 100644
--- a/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/nxp/arm64/ls1088ardb/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm64_nxp_layerscape onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls1088ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/lib/Makefile b/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/lib/Makefile
index 7f88cbee..b774306c 100644
--- a/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/lib/Makefile
+++ b/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/lib/Makefile
@@ -1,44 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-MODULE := libonlp-arm64-nxp-ls2088ardb
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm64_nxp_layerscape onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm64-nxp-ls2088ardb.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls2088ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/onlpdump/Makefile b/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/onlpdump/Makefile
index 92193643..2ba29d23 100644
--- a/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/nxp/arm64/ls2088ardb/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2016 NXP Semiconductor, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.arm64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm64_nxp_layerscape onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm64-nxp-ls2088ardb
+PLATFORM_MODULE := arm64_nxp_layerscape
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/lib/Makefile b/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/lib/Makefile
index 7f2152a7..a998b3de 100644
--- a/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/lib/Makefile
+++ b/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/lib/Makefile
@@ -1,44 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-MODULE := libonlp-arm-qemu-armv7a
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF arm_qemu_armv7a onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-arm-qemu-armv7a.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-qemu-armv7a
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/onlpdump/Makefile b/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/onlpdump/Makefile
index 5478f0a9..c8e08175 100644
--- a/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/qemu/arm/arm-qemu-armv7a/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,2 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.armel.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp arm_qemu_armv7a onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := arm-qemu-armv7a
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/powerpc/lb9/onlp/builds/lib/Makefile b/packages/platforms/quanta/powerpc/lb9/onlp/builds/lib/Makefile
index db847a9e..1200433e 100644
--- a/packages/platforms/quanta/powerpc/lb9/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/powerpc/lb9/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-# Shared and static library builds for the
-# powerpc-quanta-lb9-r0
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-quanta-lb9
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_quanta_lb9 onlplib sff cjson cjson_util quanta_sys_eeprom
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-quanta-lb9.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-quanta-lb9
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/powerpc/lb9/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/powerpc/lb9/onlp/builds/onlpdump/Makefile
index a3f76848..e067a6e8 100644
--- a/packages/platforms/quanta/powerpc/lb9/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/powerpc/lb9/onlp/builds/onlpdump/Makefile
@@ -1,51 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-LIBRARY := onlpdumpmain
-$(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST)))
-include $(BUILDER)/lib.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_quanta_lb9 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS quanta_sys_eeprom
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-quanta-lb9
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/powerpc/ly2/onlp/builds/lib/Makefile b/packages/platforms/quanta/powerpc/ly2/onlp/builds/lib/Makefile
index 6abb7a8a..571228b5 100644
--- a/packages/platforms/quanta/powerpc/ly2/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/powerpc/ly2/onlp/builds/lib/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-# Shared and static library builds for the
-# powerpc-quanta-ly2-r0
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-MODULE := libonlp-powerpc-quanta-ly2
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF powerpc_quanta_ly2 onlplib sff cjson cjson_util quanta_sys_eeprom
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-powerpc-quanta-ly2.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-quanta-ly2
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/powerpc/ly2/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/powerpc/ly2/onlp/builds/onlpdump/Makefile
index c4f3fe76..8dfad43c 100644
--- a/packages/platforms/quanta/powerpc/ly2/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/powerpc/ly2/onlp/builds/onlpdump/Makefile
@@ -1,51 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.powerpc.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-LIBRARY := onlpdumpmain
-$(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST)))
-include $(BUILDER)/lib.mk
-
-DEPENDMODULES := AIM IOF onlp powerpc_quanta_ly2 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS quanta_sys_eeprom
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := powerpc-quanta-ly2
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/lib/Makefile
index 0e1c8662..9bd94e09 100755
--- a/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ix1-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ix1_rangeley quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ix1-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ix1-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/onlpdump/Makefile
index 367727d4..c891d6cc 100755
--- a/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ix1-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ix1_rangeley quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ix1-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/lib/Makefile
index 5b2d71b0..1d00d802 100755
--- a/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ix1b-rglbmc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ix1b_rglbmc quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ix1b-rglbmc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ix1b-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/onlpdump/Makefile
index dc4617f8..4c2d40bb 100755
--- a/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ix1b-rglbmc/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ix1b_rglbmc quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ix1b-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/lib/Makefile
index 8946caee..a6981abf 100755
--- a/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ix2-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ix2_rangeley quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ix2-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ix2-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/onlpdump/Makefile
index d0b7317b..9d78d5a2 100755
--- a/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ix2-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ix2_rangeley quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ix2-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/lib/Makefile
index 286d8d69..509b9e1d 100644
--- a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ix7-rglbmc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ix7_rglbmc quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ix7-rglbmc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ix7-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/onlpdump/Makefile
index 55a8e9d3..50f87a3d 100644
--- a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ix7_rglbmc quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ix7-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/lib/Makefile
index 87d1fba3..aba89057 100644
--- a/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ix8-rglbmc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ix8_rglbmc quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ix8-rglbmc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ix8-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/onlpdump/Makefile
index 5a5e759b..b3695fbc 100644
--- a/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ix8-rglbmc/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ix8_rglbmc quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ix8-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ly4r/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ly4r/onlp/builds/lib/Makefile
index 507ed454..b9534a1c 100755
--- a/packages/platforms/quanta/x86-64/ly4r/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ly4r/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ly4r
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ly4r quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ly4r.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly4r
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ly4r/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ly4r/onlp/builds/onlpdump/Makefile
index fffd61e3..e9ead2cf 100755
--- a/packages/platforms/quanta/x86-64/ly4r/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ly4r/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ly4r quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ly4r
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/lib/Makefile
index cf1c974d..0f62ad54 100644
--- a/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ly6-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ly6_rangeley quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ly6-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly6-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/onlpdump/Makefile
index b331ee93..93d4f1c6 100644
--- a/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ly6-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,46 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ly6_rangeley quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly6-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/lib/Makefile
index 3cd4efa5..69bb8026 100755
--- a/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ly7-rglbmc
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ly7_rglbmc quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ly7-rglbmc.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly7-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/onlpdump/Makefile
index f50697a1..963738f6 100755
--- a/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ly7-rglbmc/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ly7_rglbmc quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ly7-rglbmc
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/lib/Makefile
index 1c7ad3e4..d59cd281 100644
--- a/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ly8-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ly8_rangeley quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ly8-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly8-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/onlpdump/Makefile
index c38eb1c3..fc0257b0 100644
--- a/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ly8-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ly8_rangeley quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ly8-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk
diff --git a/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/lib/Makefile b/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/lib/Makefile
index 3803f023..fa6eefd3 100755
--- a/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/lib/Makefile
+++ b/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/lib/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-MODULE := libonlp-x86-64-quanta-ly9-rangeley
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF x86_64_quanta_ly9_rangeley quanta_sys_eeprom onlplib
-DEPENDMODULE_HEADERS := sff
-
-include $(BUILDER)/dependmodules.mk
-
-SHAREDLIB := libonlp-x86-64-quanta-ly9-rangeley.so
-$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
-include $(BUILDER)/so.mk
-.DEFAULT_GOAL := $(SHAREDLIB)
-
-GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -fPIC
-GLOBAL_LINK_LIBS += -lpthread
-
-include $(BUILDER)/targets.mk
-
+PLATFORM := x86-64-quanta-ly9-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk
diff --git a/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/onlpdump/Makefile b/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/onlpdump/Makefile
index 8f47038b..004fafa6 100755
--- a/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/onlpdump/Makefile
+++ b/packages/platforms/quanta/x86-64/ly9-rangeley/onlp/builds/onlpdump/Makefile
@@ -1,45 +1,3 @@
-############################################################
-#
-#
-# Copyright 2014 BigSwitch Networks, Inc.
-#
-# Licensed under the Eclipse Public License, Version 1.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
-# either express or implied. See the License for the specific
-# language governing permissions and limitations under the
-# License.
-#
-#
-############################################################
-#
-#
-#
-############################################################
-include $(ONL)/make/config.amd64.mk
-
-.DEFAULT_GOAL := onlpdump
-
-MODULE := onlpdump
-include $(BUILDER)/standardinit.mk
-
-DEPENDMODULES := AIM IOF onlp x86_64_quanta_ly9_rangeley quanta_sys_eeprom onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
-
-include $(BUILDER)/dependmodules.mk
-
-BINARY := onlpdump
-$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
-include $(BUILDER)/bin.mk
-
-GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
-GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
-GLOBAL_LINK_LIBS += -lpthread -lm
-
-include $(BUILDER)/targets.mk
+PLATFORM := x86-64-quanta-ly9-rangeley
+EXTRA_MODULES := quanta_sys_eeprom
+include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk