2022-08-05 05:09:17 +08:00
|
|
|
############################################################################
|
2024-05-13 22:17:37 +08:00
|
|
|
# libs/libxx/etl.defs
|
2022-08-05 05:09:17 +08:00
|
|
|
#
|
2024-09-13 21:11:30 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2022-08-05 05:09:17 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
ETL_VERSION=20.32.1
|
|
|
|
|
2022-11-27 14:28:07 +08:00
|
|
|
# Download and unpack tarball if no git repo found
|
|
|
|
ifeq ($(wildcard etl/.git),)
|
2022-08-05 05:09:17 +08:00
|
|
|
$(ETL_VERSION).tar.gz:
|
2023-03-08 00:17:54 +08:00
|
|
|
$(call DOWNLOAD,https://github.com/ETLCPP/etl/archive/refs/tags,$(ETL_VERSION).tar.gz)
|
2022-08-05 05:09:17 +08:00
|
|
|
|
|
|
|
etl: $(ETL_VERSION).tar.gz
|
|
|
|
$(Q) tar -xf $(ETL_VERSION).tar.gz
|
|
|
|
$(Q) $(DELFILE) $(ETL_VERSION).tar.gz
|
|
|
|
$(Q) mv etl-$(ETL_VERSION) etl
|
|
|
|
$(Q) touch $@
|
2022-11-27 14:28:07 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(TOPDIR)/include/etl: etl
|
|
|
|
$(Q) $(DIRLINK) $(CURDIR)/etl/include $(TOPDIR)/include/etl
|
2022-08-05 05:09:17 +08:00
|
|
|
ifeq ($(CONFIG_ARCH_ARMV5M), y)
|
|
|
|
$(Q) cp $(CURDIR)/etl/include/etl/profiles/armv5_no_stl.h $(CURDIR)/etl/include/etl/etl_profile.h
|
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV6M), y)
|
|
|
|
$(Q) cp $(CURDIR)/etl/include/etl/profiles/armv6_no_stl.h $(CURDIR)/etl/include/etl/etl_profile.h
|
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV7M), y)
|
|
|
|
$(Q) cp $(CURDIR)/etl/include/etl/profiles/armv7_no_stl.h $(CURDIR)/etl/include/etl/etl_profile.h
|
|
|
|
else
|
|
|
|
$(Q) cp $(CURDIR)/etl/include/etl/profiles/gcc_generic_no_stl.h $(CURDIR)/etl/include/etl/etl_profile.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
context:: $(TOPDIR)/include/etl
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
$(Q) $(DIRUNLINK) $(TOPDIR)/include/etl
|
2022-11-27 14:28:07 +08:00
|
|
|
ifeq ($(wildcard etl/.git),)
|
|
|
|
$(Q) $(DELFILE) $(ETL_VERSION).tar.gz
|
2022-08-05 05:09:17 +08:00
|
|
|
$(call DELDIR, etl)
|
2022-11-27 14:28:07 +08:00
|
|
|
endif
|